Reputation: 781
@-webkit-keyframes swag{
0% {-webkit-transform:translateY(0px);}
50% {-webkit-transform:translateY(-400px);}
100% {-webkit-transform:translateY(0px);}
}
I want to change the "-400 px" in the 50% key-frame dynamically according to the height of an another div.So can we use javascript to achieve this here ? If so,how ?
Upvotes: 2
Views: 68
Reputation: 1
I don't think SASS will solve the issue you're having.. (but it's still incredibly handy to use)
Could you explain what you're trying to achieve a little more? (eg positioning, what variables on sizing etc)
Upvotes: 0
Reputation: 370
Better use Less (http://lesscss.org/) or Sass (http://sass-lang.com/),which are CSS dynamic languages.
Upvotes: 1