Code Pad
Code
List Code
Search Code
Images
List Images
Search Images
Login
Privacy
Home
falling leaves using tweenmax
jquery ui datepicker
js
styling css elements based on their attributes
css
animate background gradient css
css
linear gradient background with 3 colours
css
web storage testing
js
load a script based on a page condition variable
jquery
loop through elements and change the content using each and substr with jquery
jquery
mega menu testing
css
basic foundation grid layout
html
falling leaves using tweenmax
2:44 am, November 26, 2018
Code
html
css
js
scripts
html
css
#leaves { background-color: #111; font-family: sans-serif; color:white; overflow:hidden; min-height:300px; } .dot{ width:35px; height:35px; position:absolute; background: url(https://kruxor.com/codepad/images/iconmonstr-note-20-240-gray.png); background-size: 100% 100%; } html, body, #container {width:100%; height:100%; } #logo{ left:50%; top:50%; position:absolute; border-radius:10px; }
js
$(document).ready(function() { var falling = true; TweenLite.set("#leaves",{perspective:600}) TweenLite.set("img",{xPercent:"-50%",yPercent:"-50%"}) var total = 30; var container = document.getElementById("leaves"), w = window.innerWidth , h = window.innerHeight; for (i=0; i
scripts
Download & Run
Download File
Run Demo
Re-load Preview
Preview
fiEu5