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 02 February 2022, Wednesday.

How do I make an a pen by bryan?
  1. A Pen by Bryan Previews
  2. A Pen by Bryan HTML Codes
  3. A Pen by Bryan CSS Codes
A Pen by Bryan Previews

A Pen by Bryan 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 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;
}
Do you want hide your ip address?Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup.