|
|
|
|
test scrollable div
//Do things after ... milliseconds
setTimeout(function(){
//make the div slides instead of jumping to the destination
somediv.style.transition = "transform 0.3s ease"
//will slide 30px to the right, can be negative (-100px), percentage (100%)
somediv.style.transform = "translateX(30px)"
}, 5000) //5000 milliseconds = 5 seconds
Author: | Bling King |
Published: | Jan 22nd 2021 |
Modified: | Jan 22nd 2021 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|