Skip to content
  • Categories
  • Recent
  • Groups
  • Users
  • Tags
  • Popular
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Lumen)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Categories
  3. Web Development
  4. Bouncing DVD logo code example

Bouncing DVD logo code example

Scheduled Pinned Locked Moved Web Development
5 Posts 3 Posters 233 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • VGMooseV Offline
    VGMooseV Offline
    VGMoose
    Admin
    wrote on last edited by VGMoose
    #1

    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:

    ![dvd](https://vgmoose.bdns.dev/dvd.svg)
    

    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

    Sign the petition! Help us figure out the browser timeout.

    1 Reply Last reply
    2
    • TheAndyboiT Offline
      TheAndyboiT Offline
      TheAndyboi
      Anti Cringe Level I ♥ Nirvana
      wrote on last edited by
      #2

      ooooooooo wowwwww, i dot understand any of this

      rip dort

      https://browsedns.net/groups/a-c-a-the-anti-cringe-association

      1 Reply Last reply
      0
      • TheAndyboiT Offline
        TheAndyboiT Offline
        TheAndyboi
        Anti Cringe Level I ♥ Nirvana
        wrote on last edited by
        #3

        I GOT IT TO HIT THE CORNER YAYAYAYSYSYSYDEYHFNJ

        rip dort

        https://browsedns.net/groups/a-c-a-the-anti-cringe-association

        1 Reply Last reply
        0
        • VGMooseV Offline
          VGMooseV Offline
          VGMoose
          Admin
          wrote on last edited by
          #4

          Here's a full screen version, for switch users: https://vgmoose.bdns.dev/dvd.html

          Sign the petition! Help us figure out the browser timeout.

          1 Reply Last reply
          2
          • RavenR Offline
            RavenR Offline
            Raven
            Co-Admin
            wrote on last edited by
            #5

            Lol, Neat!

            1 Reply Last reply
            1
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Groups
            • Users
            • Tags
            • Popular