WebTec
WebTec
Learn everything about Webdevelopment
Home
Social Media
About
Scroll Down Animation| Using HTML, CSS and JavaScript
HTML
Scrolldown Animation
scroll
CSS
html, body { margin: 0; padding: 0; } .scroll { position: absolute; width: 30px; height: 100px; top: 50%; left: 50%; transform: translate(-50%, -50%); } .scroll p { transform: rotate(-90deg); font-family: 'Nanum Myeongjo', serif; margin-right: 2px; } .scrolldown { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 1px; height: 70px; background: black; animation: animate 2s linear infinite; } @keyframes animate { 0% { transform-origin: top; transform: scaleY(0); } 100% { transform-origin: top; transform: scaleY(1); } }
Back
Video