A Pen by Bryan

Developer
Size
2,286 Kb
Views
12,144

How do I make an a pen by bryan?

What is a a pen by bryan? How do you make a a pen by bryan? This script and codes were developed by Bryan on 29 November 2022, Tuesday.

A Pen by Bryan Previews

A Pen by Bryan - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Bryan </title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link href='https://fonts.googleapis.com/css?family=Oswald:400,300' rel='stylesheet' type='text/css'>
<div class="main"> <input type="checkbox" name="toggle" id="toggle" /> <label for="toggle"></label> <div class="card one"> <div class="content"> <h1>Card Title 1</h1> <p>Some content</p> </div><!-- content --> </div><!--card one --> <div class="card two"> <div class="content"> <h1>Card Title 2</h1> <p>Some more content</p> </div><!-- content --> </div><!--card two -->
</div><!-- main -->
</body>
</html>

A Pen by Bryan - Script Codes CSS Codes

*, *:before, *:after { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; }
html{ background:#e1e1e1;
}
/* card style */
h1{ border-bottom:1px #e1e1e1 solid; font-family: 'Oswald', sans-serif; font-weight:300; margin-bottom:15px; text-transform:uppercase; width:100%;
}
p{font-family:'georgia', serif; color:#666666;}
.main{ width:100%; height:auto; margin:50px auto;
}
.card{	background:#FFFFFF;	border:1px solid #c1c1c1; display:block; margin:0px auto; padding:20px;
}
.one{ bottom:0; height:300px; position:relative; width:500px; z-index:1;
}
.two{ top:-250px; height:300px; position:relative; width:450px; z-index:0;
}
/* toggle from surjith: https://codepen.io/surjithctly/pen/pLDwe */
#toggle { position:absolute; appearance:none; cursor:pointer; left:-100%; top:-100%;
}
#toggle + label { top:335px; position:relative; cursor:pointer; padding:10px; background: #26ae90; width: 100px; border-radius: 3px; padding: 8px 10px; color: #000000; line-height:20px; left:28.5%; font-size:12px; text-align:center; -webkit-font-smoothing: antialiased; cursor: pointer; margin:20px auto; transition:all 500ms ease; z-index:3;
}
#toggle + label:after { content:"Card 2"; font-family: 'Oswald', sans-serif; text-transform:uppercase; line-height:0; vertical-align:middle;
}
.one { transition: bottom 300ms cubic-bezier(.17,.67,.83,.67), height 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94), position 300ms cubic-bezier(.17,.67,.83,.67), z-index 3ms cubic-bezier(0.17, 0.04, 0.03, 0.94), width 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
}
.two { transition: z-index 3ms cubic-bezier(0.17, 0.04, 0.03, 0.94), top 300ms cubic-bezier(.17,.67,.83,.67), height 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94), position 300ms cubic-bezier(.17,.67,.83,.67), width 300ms cubic-bezier(0.17, 0.04, 0.03, 0.94);
}
#toggle:checked ~ .one { bottom:-50px; height:300px; position:relative; width:450px; z-index:0;
}
#toggle:checked ~ .two { top:-300px; height:300px; position:relative; width:500px; z-index:1;
}
#toggle + label { background:none;
}
#toggle:checked + label { background:none;
}
#toggle:checked + label:after { content:"Card 1"; font-family: 'Oswald', sans-serif; text-transform:uppercase; line-height:0; vertical-align:middle;
}
A Pen by Bryan - Script Codes
A Pen by Bryan - Script Codes
Home Page Home
Developer Bryan
Username Brydave
Uploaded November 29, 2022
Rating 3
Size 2,286 Kb
Views 12,144
Do you need developer help for A Pen by Bryan?

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!

Bryan (Brydave) Script Codes
Create amazing video scripts 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!