Cyber
A Pen by Vardenis Pavardenis on CodePen.
Cyber
A Pen by Vardenis Pavardenis on CodePen.
| <div class="playground"> | |
| <div class="header-image"> | |
| <img src="http://mattcannon.games/codepen/toast/tt.png" alt="Toast Notification Playground"> | |
| </div> | |
| <div class="section"> | |
| <h3><i class="fa-solid fa-palette"></i> Theme</h3> | |
| <div class="grid" id="theme-buttons"> | |
| <button data-theme="arcade" class="modern-btn"><i class="fa-solid fa-gamepad"></i> Arcade</button> | |
| <button data-theme="professional" class="modern-btn"><i class="fa-solid fa-briefcase"></i> Professional</button> |
I'm terrible at controlling actual claw machines, so I coded my own. You can move the claw by holding down the button, and stop by releasing. The main challenge was to chain the animation required to move the claw and the arm. To simulate gravity, the toy tilts based on which part of the toy the claw grabs. The facial expression on the toys and the claw is also animated for fun.
A Pen by Masahito Leo Takeuchi on CodePen.
Source: Bedimcode (https://www.youtube.com/watch?v=4YR6goNFeSY)
A Pen by Leonam Silva de Souza on CodePen.
A Pen by Aaron Iker on CodePen.
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Matching Game</title> | |
| <meta name="description" content=""> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <link rel="stylesheet prefetch" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css"> | |
| <link rel="stylesheet prefetch" href="https://fonts.googleapis.com/css?family=Coda"> | |
| <link rel="stylesheet" href="css/app.css"> |
A Pen by Kurtis Thrasher on CodePen.
| <div class="slider"> | |
| <input type="radio" name="slider" title="slide1" checked="checked" class="slider__nav"/> | |
| <input type="radio" name="slider" title="slide2" class="slider__nav"/> | |
| <input type="radio" name="slider" title="slide3" class="slider__nav"/> | |
| <input type="radio" name="slider" title="slide4" class="slider__nav"/> | |
| <div class="slider__inner"> | |
| <div class="slider__contents"><i class="slider__image fa fa-codepen"></i> | |
| <h2 class="slider__caption">codepen</h2> | |
| <p class="slider__txt">Lorem ipsum dolor sit amet, consectetur adipisicing elit. At cupiditate omnis possimus illo quos, corporis minima!</p> |
| <header> | |
| <div class="navbar" role="navigation"> | |
| <div class="container"> | |
| <div class="navbar-header"> | |
| <a class="navbar-brand" id="logo" href="#">jQuery Animations</a> | |
| <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#mynav"> | |
| <span class="sr-only">Toggle navigation</span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> | |
| <span class="icon-bar"></span> |