@-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 ?
.css(), I'll write an answer.