Viewing 15 replies - 1 through 15 (of 22 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Thread Starter FranG

    (@frang)

    Thank you very much.
    But how can I put the code in my site?

    Sorry for my slly question…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Does Customizr have a “Custom CSS” option?

    Thread Starter FranG

    (@frang)

    Yes. And I already tried to put the code but anything happen…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Remember that you have to change this bit in the generated code:

    .element-animation

    Change it to match the element you want it to match.

    https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/Selectors

    Thread Starter FranG

    (@frang)

    I change it to .list-style and nothing happen 🙁

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Change it to:

    .entry-content li

    Thread Starter FranG

    (@frang)

    Nice!
    Thank you! 🙂

    But it is possible to do without being a block… for example I want to appear the frist line of the bullets, and then the second, and so on..

    Thank you so much

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try applying a different animation length for each <li>. E.g. in that cssanimate.com site create another animation for the 2nd bullet point with a 2 second Duration. Copy that code and apply it to the second <li> just under this bit of your code:

    .entry-content li {
     ...
    }

    You can apply CSS to the second, third, fourth (etc.) <li> elements through the CSS “nth-of-type” selector http://www.w3schools.com/cssref/sel_nth-of-type.asp

    E.g.:

    .entry-content li {
     ...
    }
    
    .entry-content li:nth-of-type(2) {
      animation: animationFrames linear 2s;
      animation-iteration-count: 1;
      transform-origin: ;
      -webkit-animation: animationFrames linear 2s;
      -webkit-animation-iteration-count: 1;
      -webkit-transform-origin: ;
      -moz-animation: animationFrames linear 2s;
      -moz-animation-iteration-count: 1;
      -moz-transform-origin: ;
      -o-animation: animationFrames linear 2s;
      -o-animation-iteration-count: 1;
      -o-transform-origin: ;
      -ms-animation: animationFrames linear 2s;
      -ms-animation-iteration-count: 1;
      -ms-transform-origin: ;
    }

    So when you’re creating the code for the other <li>s, with more duration, you just want to copy this bit over from cssanimate.com:

    .element-animation{
     ...
    }

    All the other code generated is just duplication.

    E.g.: http://cssdesk.com/6H7zP

    You’ll notice that longer words will appear sooner

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    You’ll notice that longer words will appear sooner

    You could get around that when you’re generating the new code to change the “left” position to be off the screen more, e.g. -210px, but then you’ll need to copy the entire generated code and rather than just this bit:

    .element-animation{
     ...
    }

    And you’ll need to put that entire code completely underneath all of the keyframes code of the previous style.

    Thread Starter FranG

    (@frang)

    Thak you so much, it results perfectally! But now I have another problem… all the lists, including the menu list have animation…

    Thanks!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Instead of this:

    li:nth-of-type(2)

    Use this:

    .entry-content li:nth-of-type(2)

    great Andrew 🙂
    FranG also, let’s say you want those animations just for some specific ul, you can add a class to those ul:
    <ul class="animated">
    and then, as Andrew suggested above use:
    .animated li

    Thread Starter FranG

    (@frang)

    Thank you.

    I don’t know what I’m doing wrong but it didn’t work. I have used what Andrew and d4z_c0nf told.

    🙁

    I’m so sorry!

    Don’t give up 😀
    Where are those rules now? Cannot see those effect in that page, and cannot see those rules in your custom css.
    Anyway let’s do some spring clean, from your custom css, remove this:

    <script>
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
    
    ga('create', 'UA-51082762-1', 'rrplanning.pt');
    ga('send', 'pageview');
    
    </script>

    This is a script cannot be put in the css. See here how to have ga in customizr: http://www.themesandco.com/snippet/adding-google-analytics-customizr/

Viewing 15 replies - 1 through 15 (of 22 total)

The topic ‘Animation words or text’ is closed to new replies.