Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Auto Save

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <head>
 <link href="https://use.fontawesome.com/releases/v5.6.1/css/all.css" rel="stylesheet">
   <link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
</head>

<h1>Jiggly UI Animation</h1>
<p>Hover us and enjoy the satisfying soft UI designs like mochi!</p>

 <div class ="frame">
   
 <a href="#" class="btn btn1">
 Click Me!
</a>
 
  <a href="#" class="btn btn2">
 Click Me!
</a>
   
 <a href="#" class="btn btn3">
 Click Me!
</a>
   
 <a href="#" class="btn btn4">
 Click Me!
</a>
 
</div> 
  <p style="font-family: Andale Mono, monospace;">
    DEERBUCKS.DESIGNING</p>


              
            
!

CSS

              
                body {
  background: #e0e5ec;
}
h1 {
  margin-top: 100px;
  position: relative;
  text-align: center;
  color: #353535;
  font-size: 50px;
  font-family: "Cormorant Garamond", serif;
}
h1:before{
  position: absolute;
  content: "";
  bottom: -10px;
  width: 55%;
  height: 2px;
  background-color: #98d9e1;
background-image: linear-gradient(315deg, #98d9e1 0%, #d6aed6 74%);
}

p {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  text-align: center;
  font-size: 18px;
  color: #676767;
}

.frame {
  width: 90%;
  margin: 40px auto;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.btn {
    position: relative;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 30px auto;
    box-shadow:inset 2px 2px 2px 0px rgba(255,255,255,.5),
    inset -7px -7px 10px 0px rgba(0,0,0,.1),
   7px 7px 20px 0px rgba(0,0,0,.1),
   4px 4px 5px 0px rgba(0,0,0,.1);
   text-shadow:  0px 0px 6px rgba(255,255,255,.3),
              -4px -4px 6px rgba(116, 125, 136, .2);
  text-shadow: 2px 2px 3px rgba(255,255,255,0.5);
    border-radius: 50px;
    font-family: 'Lato', sans-serif;
    font-weight: bold;
    font-size: 26px;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}
.btn:hover {
    text-decoration: none;
    
}
.btn:active{
  color: #fff;
  box-shadow:  4px 4px 6px 0 rgba(255,255,255,.3),
              -4px -4px 6px 0 rgba(116, 125, 136, .2), 
    inset -4px -4px 6px 0 rgba(255,255,255,.2),
    inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
}

.btn1{
  background-color: #e8d1ff;
  color: #ce9eff;
}

.btn2{
   color: #5cbdbb;
  background-color: #b2e0df;
}

.btn3{
   color: #ff84c1;
  background-color: #ffc1e0;
}

.btn4{
   color: #84c1ff;
  background-color: #b2d8ff;
}

.btn1:hover{
  animation: hoverShake 0.15s linear 3;
}
@keyframes hoverShake {
  0% {transform: skew(0deg,0deg);}
  25% {transform: skew(5deg, 5deg);}
  75% {transform: skew(-5deg, -5deg);}
  100% {transform: skew(0deg,0deg);}
}

.btn2:hover{
	animation: fluffy 0.8s linear 0s 1;
}
@keyframes fluffy {
	0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
	15%  { transform: scale(0.9, 0.9) translate(0%, 5%); }
	30%  { transform: scale(1.3, 0.8) translate(0%, 10%); }
	50%  { transform: scale(0.8, 1.3) translate(0%, -10%); }
	70%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
	100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}

.btn4:hover{
  animation: poyon 1.1s linear 0s 1;
}
@keyframes poyon {
  0%   { transform: scale(1.0, 1.0) translate(0%, 0%); }
  5%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
  10%  { transform: scale(1.2, 0.8) translate(0%, 15%); }
  20%  { transform: scale(1.0, 1.0) translate(0%, 0%); }
  30%  { transform: scale(0.9, 1.2) translate(0%, -100%); }
  40%  { transform: scale(1.4, 0.6) translate(0%, 30%); }
  50%  { transform: scale(0.9, 1.1) translate(0%, -10%); }
  60%  { transform: scale(0.95, 1.2) translate(0%, -30%); }
  70%  { transform: scale(0.95, 1.2) translate(0%, -10%); }
  80%  { transform: scale(1.1, 0.9) translate(0%, 5%); }
  90%  { transform: scale(1.0, 1.0) translate(0%, 0%); }
  100% { transform: scale(1.0, 1.0) translate(0%, 0%); }
}

.btn3:hover{
  animation: mochi 0.8s linear 0s 1;
}
@keyframes mochi {
	0% {
		transform: scale(1, 0.8);
	}
	20% {
		transform: scale(0.8, 1.1);
	}
	95% {
		transform: scale(1, 1);
	}
	100% {
		transform: scale(1, 0.8);
	}

              
            
!

JS

              
                
              
            
!
999px

Console