Bouncing DVD logo code example
-
View online: https://vgmoose.bdns.dev/dvd.html
This is using CSS animations, and no javascript, so it works embedded within an SVG, which can also be embedded within BDNS profiles.
Example on my profile: http://bdns.bio/vgmoose
Profile embed:
HTML/CSS:
<body> <style> body { margin: 0; background-color: darkblue; background: linear-gradient(to top, #3204fdba, #9907facc), darkblue no-repeat top center; width: 100%; height: 100%; } img, div { width: 110px; height: 66px; } .x { animation: x 6.5s linear infinite alternate; } .y { animation: y 3.5s linear infinite alternate; } @keyframes x { 100% { transform: translateX( calc(400px - 110px) ); } } @keyframes y { 100% { transform: translateY( calc(400px - 66px) ); } } </style> <div class="x"> <img class="y" src="https://vgmoose.bdns.dev/dvd_logo.png" alt="dvd" /> </div> </body>To learn more about CSS animations and keyframes, see this page: https://www.w3schools.com/css/css3_animations.asp
-
ooooooooo wowwwww, i dot understand any of this
-
I GOT IT TO HIT THE CORNER YAYAYAYSYSYSYDEYHFNJ
-
Here's a full screen version, for switch users: https://vgmoose.bdns.dev/dvd.html
-
Lol, Neat!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login
