treehouse : what would you like to learn today?
Web Design Web Development iOS Development

[Solved] CSS animations with SASS

  • I can get it to work with SCSS but not with the bracket-less SASS syntax

    I tried looking everywhere but couldn't find how people are doing it in SASS files..

    does anyone here know whats the syntax is?

    or is it only possible in SCSS at the moment?
  • nevermind.

    this is how i'm doing it:

    //animation
    @-webkit-keyframes rise
    0%
    margin-top: 500px
    100%
    margin-top: -230px

    @mixin rise_animation
    -webkit-animation: rise 1s
    -moz-animation: rise 1s
    -o-animation: rise 1s
    animation: rise 1s