javascript - Typed.js Animated blinker cursor not working - Stack Overflow

So I'm trying to use the blinker cursor on typed.js an awesome js.plugin which can be found here:

So I'm trying to use the blinker cursor on typed.js an awesome js.plugin which can be found here: .js

I'm trying to get the blinker cursor inline with the text as it types but as you can see at the minute from the jsfiddle: / it is just blinking on the side.

The reason for this is that I have applied some an id to typed so that the text is centered and the font is changed etc.

Unfortunately, this seems to have ruined the blinker effect.

Is anyone aware of how to get both the blinker working with CSS styling applied as shown on the js fiddle.

    .typed-cursor{
    opacity: 1;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
    }
    @keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }
    @-webkit-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }
    @-moz-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }

This is the code on typed.js page to get the typed-cursor blinking correctly

Thanks a lot for any help. Of course, I will upvote the correct answer etc. Enjoy the day harry :)

So I'm trying to use the blinker cursor on typed.js an awesome js.plugin which can be found here: https://github./mattboldt/typed.js

I'm trying to get the blinker cursor inline with the text as it types but as you can see at the minute from the jsfiddle: https://jsfiddle/harrydry/p4ev1nj2/ it is just blinking on the side.

The reason for this is that I have applied some an id to typed so that the text is centered and the font is changed etc.

Unfortunately, this seems to have ruined the blinker effect.

Is anyone aware of how to get both the blinker working with CSS styling applied as shown on the js fiddle.

    .typed-cursor{
    opacity: 1;
    -webkit-animation: blink 0.7s infinite;
    -moz-animation: blink 0.7s infinite;
    animation: blink 0.7s infinite;
    }
    @keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }
    @-webkit-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }
    @-moz-keyframes blink{
    0% { opacity:1; }
    50% { opacity:0; }
    100% { opacity:1; }
    }

This is the code on typed.js page to get the typed-cursor blinking correctly

Thanks a lot for any help. Of course, I will upvote the correct answer etc. Enjoy the day harry :)

Share Improve this question edited Sep 20, 2016 at 2:52 smalinux 1,1502 gold badges13 silver badges29 bronze badges asked Sep 19, 2016 at 23:02 Harry DryHarry Dry 111 silver badge6 bronze badges
Add a ment  | 

4 Answers 4

Reset to default 7

That's what worked for me:

 .typed-cursor {
        opacity: 1;
        animation: blink .7s infinite;
    }

    @keyframes blink {
        0% {
            opacity: 1;
        }
        50% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

This code works for me

.typed-cursor{
        opacity: 1;
        font-weight: 100;
        -webkit-animation: blink 0.7s infinite;
        -moz-animation: blink 0.7s infinite;
        -ms-animation: blink 0.7s infinite;
        -o-animation: blink 0.7s infinite;
        animation: blink 0.7s infinite;
    }

I hope this will help. Works fine for me.

.typed-cursor {
    -webkit-animation: blinker 1s linear infinite;
            animation: blinker 1s linear infinite;
}

@-webkit-keyframes blinker {
    50% {
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
        -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    }
}

I was also trying to fix the issue, But I found something similar answer. Hope this will work.

.your-class:after{
    visibility: visible;
    content: '';
    background-color: #fff;
    display: inline-block;
    position: relative;
    width: 2px;
    height: 1em;
    top: 5px;
    margin-left: 3px; }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742314229a4420512.html

相关推荐

  • javascript - Typed.js Animated blinker cursor not working - Stack Overflow

    So I'm trying to use the blinker cursor on typed.js an awesome js.plugin which can be found here:

    16小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信