how to move an image vertically from Y1 to Y30 in ionic 2
Example in jquery $( "img" ).animate({ "top": "400px" }, 3000);
Thankyou for any help
how to move an image vertically from Y1 to Y30 in ionic 2
Example in jquery $( "img" ).animate({ "top": "400px" }, 3000);
Thankyou for any help
Use CSS transitions.
Example: you can add an css class that will change the top’s attribute from the element.
Fiddle:
https://jsfiddle.net/vn63hok1/
You can use Angular to change the div’s class list, instead of just vanilla javascript.