A Pen by James Steinbach

Size
2,612 Kb
Views
16,192

How do I make an a pen by james steinbach?

What is a a pen by james steinbach? How do you make a a pen by james steinbach? This script and codes were developed by James Steinbach on 05 November 2022, Saturday.

A Pen by James Steinbach Previews

A Pen by James Steinbach - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by James Steinbach</title> <script src="https://s.codepen.io/assets/libs/modernizr.js" type="text/javascript"></script> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="col"> <button class="toggle-bad">Show the box the bad way.</button> <p class="box bad">I don't move well.</p>
</div>
<div class="col"> <button class="toggle-good">Show the box the good way.</button> <p class="box good">I move nicely!</p>
</div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

A Pen by James Steinbach - Script Codes CSS Codes

* { box-sizing: border-box; text-align: center;
}
button { border: 1px solid #ccc; text-align: center; padding: 1em; background: none; box-shadow: none;
}
.col { display: inline-block; vertical-align: top; padding: 1em;
}
.box { display: none; line-height: 100px; background: #ccc; border: 1px solid #444; text-align: center; -webkit-transform: scale(0); transform: scale(0); opacity: 0; -webkit-transition: opacity .3s ease-in-out, -webkit-transform .3s ease-in-out; transition: opacity .3s ease-in-out, -webkit-transform .3s ease-in-out; transition: transform .3s ease-in-out, opacity .3s ease-in-out; transition: transform .3s ease-in-out, opacity .3s ease-in-out, -webkit-transform .3s ease-in-out;
}
.box.active { display: block; -webkit-transform: scale(1); transform: scale(1); opacity: 1;
}
.box.active.bad { display: block; -webkit-transform: scale(1); transform: scale(1); opacity: 1;
}
.box.active.good { -webkit-animation: anim .3s ease-in-out; animation: anim .3s ease-in-out;
}
@-webkit-keyframes anim { 0% { display: none; opacity: 0; } 1% { display: block; opacity: 0; -webkit-transform: scale(0); transform: scale(0); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes anim { 0% { display: none; opacity: 0; } 1% { display: block; opacity: 0; -webkit-transform: scale(0); transform: scale(0); } 100% { opacity: 1; -webkit-transform: scale(1); transform: scale(1); }
}

A Pen by James Steinbach - Script Codes JS Codes

$('button').on('click', function(e){ e.preventDefault(); $(this).siblings('.box').toggleClass('active');
})
A Pen by James Steinbach - Script Codes
A Pen by James Steinbach - Script Codes
Home Page Home
Developer James Steinbach
Username jdsteinbach
Uploaded November 05, 2022
Rating 3.5
Size 2,612 Kb
Views 16,192
Do you need developer help for A Pen by James Steinbach?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

James Steinbach (jdsteinbach) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!