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

              
                <!--Disclaimer: This CodePen is provided for instructional purposes only. Vidyard cannot support or guarantee any dependencies on third-party code or libraries such as JavaScript, jQuery or CSS-->

<!--Templated Business Card v1 - Modified by Chris Broughton March 2021 - removed change to vertical card
Bounce effect will only work with additional Javascript...
To achieve this, first, run completed code through Minifier @ https://www.willpeavy.com/tools/minifier/
Then paste minified code into the area assigned on https://codepen.io/Vidyard/pen/jOrQGOR
-->
  
<style>
  
 *{
   
 font-family: sans-serif; /*set font*/
  
 }.btn{

background-color: #333; /*set button background colour*/
border-color: #333; /*set button border colour*/
color: #fff; /*set button text colour*/
  
margin-top:10px;width:74%;text-decoration: none;padding: 9px 20px;outline: 0;border-width: 2px;border-radius: 3px;font-size: 14px;font-weight: 500;letter-spacing: .5px;line-height: 18px;transition: background-color 0.4s,border-color 0.4s,color 0.4s;transition-timing-function: cubic-bezier(.16,1,.29,.99);display: inline-block;margin-bottom: 0;font-weight: 400;text-align: center;vertical-align: middle;touch-action: manipulation;cursor: pointer;background-image: none;border: 1px solid transparent;white-space: nowrap;-moz-user-select: none;-ms-user-select: none;user-select: none;}
  
.btn:hover { 
  
background-color: #000!important; /*set button background hover colour*/
border-color: #000!important; /*set button border hover colour*/
color: #fff!important; /*set button text hover colour*/
}
  
.profile-card header h1{
  
color: #000; /*set name colour*/
  
}
  
.profile-social-links li a{display: inline-block; 
  
color: #333; /*set social links colour*/
  
width: 24px; height: 24px; padding: 6px; position: relative; overflow: hidden!important; -webkit-border-radius: 50%; border-radius: 50%;}.profile-card{
  
background: blue; /*set bounce first colour*/
  
width: 90%; height: 90%; position: absolute; left: 50%; top: 50%; z-index: 2; overflow: hidden; opacity: 0; margin-top: 70px; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-border-radius: 50%; border-radius: 50%; -webkit-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23); box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.16), 0px 3px 6px rgba(0, 0, 0, 0.23); -webkit-animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards; animation: init 0.5s 0.2s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards, moveDown 1s 0.8s cubic-bezier(0.6, -0.28, 0.735, 0.045) forwards, moveUp 1s 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards, materia 0.5s 2.7s cubic-bezier(0.86, 0, 0.07, 1) forwards;}webkit-keyframes moveUp{0%{background: #000; top: 100%;}50%{top: 40%;}100%{top: 50%; 

background: red; /*set bounce second colour*/
  
}}@keyframes moveUp{0%{
   
background: yellow; /*set bounce middle transition colour*/
   
top: 100%;}50%{top: 40%;}100%{top: 50%; 
   
background: red; /*set bounce second colour (repeat)*/
   
   }}
  
html{height: 100%; font-family: sans-serif;}h1, h2{font-weight: 500; margin: 0px 0px 5px 0px;}h1{font-size: 20px;}h2{font-size: 14px;}p{margin: 0px;}.btn-indigo-400:hover,body {margin: auto;}.profile-card header{width: 179px; height: 280px; padding: 40px 20px 30px 20px; display: inline-block; float: left; border-right: 2px dashed #EEEEEE;color: #000000; margin-top: 50px; opacity: 0; text-align: center; -webkit-animation: moveIn 1s 3.1s ease forwards; animation: moveIn 1s 3.1s ease forwards;}.profile-card header a{display: inline-block; text-align: center; position: relative; margin: 15px;}.profile-card header a:after{display:none; position: absolute; content: ""; bottom: 3px; right: 3px; width: 20px; height: 20px; border: 4px solid #FFFFFF; -webkit-transform: scale(0); transform: scale(0); background: -webkit-linear-gradient(top, #333 0%, #333 50%, #eee 50%, #eee 100%); background: linear-gradient(#333 0%, #333 50%, #eee 50%, #eee 100%); -webkit-border-radius: 50%; border-radius: 50%; -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); -webkit-animation: scaleIn 0.3s 3.5s ease forwards; animation: scaleIn 0.3s 3.5s ease forwards;}.face{width: 120px; max-width: 100%; -webkit-border-radius: 50%; border-radius: 50%; -webkit-transition: -webkit-box-shadow 0.3s ease; transition: box-shadow 0.3s ease; -webkit-box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.06); box-shadow: 0px 0px 0px 8px rgba(0, 0, 0, 0.06);}.profile-card header a:hover > .face{-webkit-box-shadow: 0px 0px 0px 12px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 0px 12px rgba(0, 0, 0, 0.1);}.profile-card .profile-bio{width: 175px; height: 180px; display: inline-block; float: right; padding: 50px 20px 30px 20px; background: #FFFFFF; color: #333333; margin-top: 50px; text-align: center; opacity: 0; -webkit-animation: moveIn 1s 3.1s ease forwards; animation: moveIn 1s 3.1s ease forwards;}.profile-social-links{width: 218px; display: inline-block; float: right; margin: 0px; padding: 15px 20px; background: #FFFFFF; margin-top: 50px; text-align: center; opacity: 0; -webkit-box-sizing: border-box; box-sizing: border-box; -webkit-animation: moveIn 1s 3.1s ease forwards; animation: moveIn 1s 3.1s ease forwards;}.profile-social-links li{list-style: none; margin: -5px 0px 0px 0px; padding: 0px; float: left; width: 25%; text-align: center;}.profile-social-links li a i{position: relative; z-index: 1;}.profile-social-links li a img, .profile-social-links li a svg{width: 24px;}@-webkit-keyframes init{0%{width: 0px; height: 0px;}100%{width: 90%; height: 90%; margin-top: 0px; opacity: 1;}}@keyframes init{0%{width: 0px; height: 0px;}100%{width: 56px; height: 56px; margin-top: 0px; opacity: 1;}}@-webkit-keyframes puff{0%{top: 100%; height: 0px; padding: 0px;}100%{top: 50%; height: 100%; padding: 0px 100%;}}@keyframes puff{0%{top: 100%; height: 0px; padding: 0px;}100%{top: 50%; height: 100%; padding: 0px 100%;}}@-webkit-keyframes borderRadius{0%{-webkit-border-radius: 50%;}100%{-webkit-border-radius: 0px;}}@keyframes borderRadius{0%{-webkit-border-radius: 50%;}100%{border-radius: 0px;}}@-webkit-keyframes moveDown{0%{top: 50%;}50%{top: 40%;}100%{top: 100%;}}@keyframes moveDown{0%{top: 50%;}50%{top: 40%;}100%{top: 100%;}}@-@-webkit-keyframes materia{0%{background: #E0E0E0;}50%{-webkit-border-radius: 4px;}100%{width: 440px; height: 280px; background: #FFFFFF; -webkit-border-radius: 4px;}}@keyframes materia{0%{background: #E0E0E0;}50%{border-radius: 4px;}100%{width: 440px; height: 280px; background: #FFFFFF; border-radius: 4px;}}@-webkit-keyframes moveIn{0%{margin-top: 50px; opacity: 0;}100%{opacity: 1; margin-top: -20px;}}@keyframes moveIn{0%{margin-top: 50px; opacity: 0;}100%{opacity: 1; margin-top: -20px;}}@-webkit-keyframes scaleIn{0%{-webkit-transform: scale(0);}100%{-webkit-transform: scale(1);}}@keyframes scaleIn{0%{transform: scale(0);}100%{transform: scale(1);}}@-webkit-keyframes ripple{0%{transform: scale3d(0, 0, 0);}50%, 100%{-webkit-transform: scale3d(1, 1, 1);}100%{opacity: 0;}}@keyframes ripple{0%{transform: scale3d(0, 0, 0);}50%, 100%{transform: scale3d(1, 1, 1);}100%{opacity: 0;}}@media screen and (min-aspect-ratio: 4/3){body{background-size: cover;}body:before{width: 0px;}@ -webkit-keyframes puff{0%{top: 100%; width: 0px; padding-bottom: 0px;}100%{top: 50%; width: 100%; padding-bottom: 100%;}}@keyframes puff{0%{top: 100%; width: 0px; padding-bottom: 0px;}100%{top: 50%; width: 100%; padding-bottom: 100%;}}}
@media screen and (min-height: 999999px){.profile-card header{width: auto; height: auto; padding: 30px 20px; display: block; float: none; border-right: none;}.profile-card .profile-bio{width: auto; height: auto; padding: 15px 20px 30px 20px; display: block; float: none;}.profile-social-links{width: 100%; display: block; float: none;}@ -webkit-keyframes materia{0%{background: #E0E0E0;}50%{-webkit-border-radius: 4px;}100%{width: 280px; height: 440px; background: #FFFFFF; -webkit-border-radius: 4px;}}
  @keyframes materia{0%{background: #E0E0E0;}50%{border-radius: 4px;}100%{width: 280px; height: 440px; background: #FFFFFF; border-radius: 4px;}}}.intro-video{min-height: 100%; max-height: 100%; height: 100%; position: absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%) translateZ(0); width: 100%; object-fit: cover; overflow: hidden;}.vyBusinessCard{position: absolute;top: 0;left: 0;width: 100%;height: 100%;z-index: 1;}@media only screen and (max-width: 550px){.vyBusinessCard{transform: scale(0.7);}}</style><link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous"><div class="vyBusinessCard"><aside class="profile-card"><header> <a  target="_blank" href=

"mailto:EMAIL-HERE"

> <img class="face"src=
       
"https://vyexample.com/cbroughton/femaleexample.png"
       
style="width:70px"> </a><h1>
  
First Lastname 
  
</h1><h2> 
  
Job Title 
  
<br/><br/></h2><a target="_blank" href=
                  
"WEBSITE HOME LINK"
                  
><img src=
      
"//vyexample.com/cbroughton/generic-logo-md.png"
      
 style="width:90px;"></a> </header><div class="profile-bio"><p><br><a class="btn" href=
                                                                      
"CALENDAR LINK HERE"
                                                                      
target="_blank">
  
Book time with me
  
</a> <a class="btn" href=
        
"DEMO LINK HERE"

target="_blank">
  
Demo
  
</a> <a class="btn" href=
        
"KNOWLEDGE BASE LINK"
        
target="_blank">
  
Knowledge Base
  
</a> </p> </div><ul class="profile-social-links"><li> <a target="_blank" href=
                                                         
"FACEBOOK LINK"
                                                         
> <i class="fa fa-facebook"></i> </a> </li><li> <a target="_blank" href=
                                                   
"TWITTER LINK"
                                                   
> <i class="fa fa-twitter"></i> </a> </li><li> <a target="_blank" href=
                                                  
"LINKEDIN LINK"
                                                  
> <i class="fa fa-linkedin"></i> </a> </li><li> <a target="_blank" href=
                                                   
"mailto:EMAIL-HERE"
                                                   
> <i class="fa fa-envelope"></i> </a> </li></ul></aside></div><div class="overlay"></div>
<!-- video used for background must support embedding -->
<iframe class="intro-video" src="//play.vidyard.com/MKCPuFUeqk4L49XsJRCQtA/type/background?preview=1"scrolling="no" frameborder="0" allowtransparency="true" allowfullscreen="true"></iframe></div>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console