Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文字竖行逐字显示出来 #37

Open
lcgyh opened this issue Dec 13, 2017 · 1 comment
Open

文字竖行逐字显示出来 #37

lcgyh opened this issue Dec 13, 2017 · 1 comment

Comments

@lcgyh
Copy link
Owner

lcgyh commented Dec 13, 2017

No description provided.

@lcgyh lcgyh added the 主题 label Dec 13, 2017
@lcgyh lcgyh removed the 主题 label Aug 29, 2018
@lcgyh lcgyh changed the title vue 文字竖行逐字显示出来 Aug 2, 2019
@lcgyh
Copy link
Owner Author

lcgyh commented Aug 2, 2019

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" href="http://r01.uzaicdn.com/content/v1/styles/subject.css"> 
    <link rel="stylesheet" href="styles/lianxi.css">
    <script src="http://r01.uzaicdn.com/content/v1/scripts/core.js"></script>
    <script src="scripts/lianxi.js"></script>
    <!--[if lt IE 9]><script src="//r.uzaicdn.com/content/libs/html5shiv.js"></script><![endif]-->
    <!--[if IE 6]><script src="//r.uzaicdn.com/content/libs/dd_belatedpng_0.0.8a-min.js" type="text/javascript"></script><script>DD_belatedPNG.fix('.png');</script><![endif]-->
    <style type='text/css'>
    .txt{-webkit-writing-mode: vertical-rl;-ms-writing-mode: vertical-rl;writing-mode: vertical-rl;-webkit-writing-mode: tb-rl; -ms-writing-mode: tb-rl; writing-mode: tb-rl;}
    .txt span{-webkit-animation: wenzi 1s backwards; -moz-animation: wenzi 1s backwards;-ms-animation: wenzi 1s backwards;-o-animation: wenzi 1s backwards; animation: wenzi 1s backwards;opacity: 0;}
    .txt .on{opacity: 1;}
    @keyframes wenzi{from {opacity: 0;} to {  opacity: 1;} }
    @-moz-keyframes wenzi{from {opacity: 0;} to {  opacity: 1;}}
    @-webkit-keyframes wenzi{from {opacity: 0;} to {  opacity: 1;}}
    @-ms-keyframes wenzi{from {opacity: 0;} to {  opacity: 1;}}
    @-o-keyframes wenzi{from {opacity: 0;} to {  opacity: 1;}}
    </style>
</head>
<body>
    <dl class="txt">
        <dt> 秋日下江南,有一种生活叫周庄</dt>
        <dd>
            <span>如</span><span>果</span><span>不</span><span>是</span><span>这</span><span>古</span><span>朴</span><span>秀</span><br>
            <span>这</span><span>明</span><span>清</span><span>民</span><span>这</span><span>雅</span><span>的</span> 
        </dd>
        </dl>
</body>
 <script>
    $(function() {
    var delay = 1;
    $('.txt').find('span').each(function(index, el) {
        var oThis = $(this);
        oThis.addClass('on');
        oThis.css({
            'animation-delay': index * delay + 's'
        });
    });
})
 </script>

</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant