Skip to content

Instantly share code, notes, and snippets.

@lifenouveau
Created January 3, 2015 20:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifenouveau/c83daa988fcf00bc95ca to your computer and use it in GitHub Desktop.
Save lifenouveau/c83daa988fcf00bc95ca to your computer and use it in GitHub Desktop.
Cards // source http://jsbin.com/bipum
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<meta charset="utf-8">
<title>Cards</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"/></script>
<style id="jsbin-css">
body {
background: #f5f5f5
}
img {
width: 80px;
}
.slide p {
color: #5e5e5e;
padding: 5px 12px;
line-height: 115%;
font-size: 15px;
text-align:center;
margin-top: 20px;
}
.wrapper h5 {
margin-top: 30px;
}
.btn {
height: 30px;
font-size: 13px;
font-family: "proxima_nova_rgbold";
letter-spacing: 0.3px;
display: block;
margin: auto;
color: #5e5e5e
}
.btn-large {
height: 40px;
padding: 8px 26px;
font-size: 16px;
font-family: "proxima_nova_rgbold";
}
.btn:hover, .btn:focus {
color: #5e5e5e;
}
.btn-primary{ background-color:#51A3DC; border-color: #125079; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-color: #4492c8; border-color: #125079; color: #FFFFFF;}
.btn-primary:active{background-color:#4492c8;}
.button, .btn-default, .btn-primary, .btn-subtle, .dropdown-menu {
border-width: 1px 1px 2px;
background-image: none;
letter-spacing: 0.3px;
color: #fff;
border-radius: 4px;
font-family: "Helvetica";
}
.wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 226px;
height: 190px;
margin: 10px;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
.slide {
position: absolute;
bottom: -192px;
width: 226px;
height: 190px;
margin: auto;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
</style>
</head>
<body>
<div class="wrapper">
<h5>CRM Basics</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/contact.png" alt="contact icon"/>
<div class="slide">
<p> Customer contact records, how to do a simple contact import, and the power of segmentation! </p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Email Builder</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/email.png" alt="contact icon"/>
<div class="slide">
<p>Introduction to the tools used to create emails and how to send email to a targeted group.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Campaign Builder</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/camp.png" alt="contact icon"/>
<div class="slide">
<p>An introduction to the tools inside the Campaign builder and how to start simple automation.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Workflow Automation</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/auto.png" alt="contact icon"/>
<div class="slide">
<p>Create campaigns that will put into motion the delivery of informative emails, tasks, and more.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Ecommerce Basics</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/money.png" alt="contact icon"/>
<div class="slide">
<p>Add products to set up your storefront and cart. This is a basic e-commerce webinar.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<script id="jsbin-javascript">
$(document).ready(function(){
$( ".wrapper" ).mouseover(function (e){
TweenLite.to( $(".slide", this) , 0.2, {css:{bottom:0, ease:Circ.easeOut}});
});
$('.wrapper').mouseleave(function (f){
TweenLite.to(".slide", 0.6, {bottom:"-192px", ease:Circ.easeIn});
});
});
</script>
<script id="jsbin-source-html" type="text/html"><!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-1.11.1.min.js"><\/script>
<meta charset="utf-8">
<title>Cards</title>
<script src="http://cdnjs.cloudflare.com/ajax/libs/gsap/latest/TweenMax.min.js"/><\/script>
</head>
<body>
<div class="wrapper">
<h5>CRM Basics</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/contact.png" alt="contact icon"/>
<div class="slide">
<p> Customer contact records, how to do a simple contact import, and the power of segmentation! </p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Email Builder</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/email.png" alt="contact icon"/>
<div class="slide">
<p>Introduction to the tools used to create emails and how to send email to a targeted group.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Campaign Builder</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/camp.png" alt="contact icon"/>
<div class="slide">
<p>An introduction to the tools inside the Campaign builder and how to start simple automation.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Workflow Automation</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/auto.png" alt="contact icon"/>
<div class="slide">
<p>Create campaigns that will put into motion the delivery of informative emails, tasks, and more.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
<div class="wrapper">
<h5>Ecommerce Basics</h5>
<img src="http://preview.infusionsoft.com/resources/sourceimg/money.png" alt="contact icon"/>
<div class="slide">
<p>Add products to set up your storefront and cart. This is a basic e-commerce webinar.</p>
<button type="button" class="btn btn-large btn-primary">Select</button>
</div>
</div>
</body>
</html></script>
<script id="jsbin-source-css" type="text/css">body {
background: #f5f5f5
}
img {
width: 80px;
}
.slide p {
color: #5e5e5e;
padding: 5px 12px;
line-height: 115%;
font-size: 15px;
text-align:center;
margin-top: 20px;
}
.wrapper h5 {
margin-top: 30px;
}
.btn {
height: 30px;
font-size: 13px;
font-family: "proxima_nova_rgbold";
letter-spacing: 0.3px;
display: block;
margin: auto;
color: #5e5e5e
}
.btn-large {
height: 40px;
padding: 8px 26px;
font-size: 16px;
font-family: "proxima_nova_rgbold";
}
.btn:hover, .btn:focus {
color: #5e5e5e;
}
.btn-primary{ background-color:#51A3DC; border-color: #125079; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-color: #4492c8; border-color: #125079; color: #FFFFFF;}
.btn-primary:active{background-color:#4492c8;}
.button, .btn-default, .btn-primary, .btn-subtle, .dropdown-menu {
border-width: 1px 1px 2px;
background-image: none;
letter-spacing: 0.3px;
color: #fff;
border-radius: 4px;
font-family: "Helvetica";
}
.wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 226px;
height: 190px;
margin: 10px;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
.slide {
position: absolute;
bottom: -192px;
width: 226px;
height: 190px;
margin: auto;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">$(document).ready(function(){
$( ".wrapper" ).mouseover(function (e){
TweenLite.to( $(".slide", this) , 0.2, {css:{bottom:0, ease:Circ.easeOut}});
});
$('.wrapper').mouseleave(function (f){
TweenLite.to(".slide", 0.6, {bottom:"-192px", ease:Circ.easeIn});
});
});</script></body>
</html>
body {
background: #f5f5f5
}
img {
width: 80px;
}
.slide p {
color: #5e5e5e;
padding: 5px 12px;
line-height: 115%;
font-size: 15px;
text-align:center;
margin-top: 20px;
}
.wrapper h5 {
margin-top: 30px;
}
.btn {
height: 30px;
font-size: 13px;
font-family: "proxima_nova_rgbold";
letter-spacing: 0.3px;
display: block;
margin: auto;
color: #5e5e5e
}
.btn-large {
height: 40px;
padding: 8px 26px;
font-size: 16px;
font-family: "proxima_nova_rgbold";
}
.btn:hover, .btn:focus {
color: #5e5e5e;
}
.btn-primary{ background-color:#51A3DC; border-color: #125079; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .open .dropdown-toggle.btn-primary { background-color: #4492c8; border-color: #125079; color: #FFFFFF;}
.btn-primary:active{background-color:#4492c8;}
.button, .btn-default, .btn-primary, .btn-subtle, .dropdown-menu {
border-width: 1px 1px 2px;
background-image: none;
letter-spacing: 0.3px;
color: #fff;
border-radius: 4px;
font-family: "Helvetica";
}
.wrapper {
position: relative;
overflow: hidden;
display: inline-block;
width: 226px;
height: 190px;
margin: 10px;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
.slide {
position: absolute;
bottom: -192px;
width: 226px;
height: 190px;
margin: auto;
border: 1px;
border-style: solid;
border-color: #ddd;
background: #fff;
font-family: "Helvetica";
text-align:center;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
-khtml-border-radius: 3px;
-webkit-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
-moz-box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
box-shadow: 0px 2px 3px -1px rgba(0,0,0,0.1);
}
$(document).ready(function(){
$( ".wrapper" ).mouseover(function (e){
TweenLite.to( $(".slide", this) , 0.2, {css:{bottom:0, ease:Circ.easeOut}});
});
$('.wrapper').mouseleave(function (f){
TweenLite.to(".slide", 0.6, {bottom:"-192px", ease:Circ.easeIn});
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment