Animation written in HTML using the library GSAP ? You may soon be possible.
Include GSAP.
Download https://github.com/makoso/HGSAP/blob/master/js/hgsap.js and add to your document.
Inside your
document.ready(){}
initialize hgsap with function hgsap.storeObjects();
document.ready(){
hgsap.storeObjects();
}
You can past selector inside storeObjects();
the default is [data-timeline]:not([data-finished])
If you want to change positions of obiects you must add position:relative;
to this obiect
Prefering is if you add it to all obiects:
*{
position:relative;
}
---ATTRIBUTE--- | Description |
---|---|
data-timeline | This attribute id default selector for initialize object, if two or more attributes have some data-g-timeline animations are executing one after prev, if you not set data-g-position attribute. First executing is element on the top of DOM, all obiects without attribute data-on-scroll are executing on load page. |
data-g-time | description |
data-g-from | description |
data-g-to | description |
data-g-position | description |
Hi, i'm a amateur programer, i like programing backend of web aplications with Symfony framework, but now i need to up my js skill, then i started this project.