Template:Http://2014.igem.org/Team:Colombia

From 2014.igem.org

(Difference between revisions)
Line 58: Line 58:
THE CODE:
THE CODE:
-->
-->
 +
 +
<!--PART IV: Text Buttons-->
 +
<!--CSS-->
 +
<style>
 +
 +
.button-fill {
 +
  text-align: center;
 +
  background: #ccc;
 +
  display: inline-block;
 +
  position: relative;
 +
  text-transform: uppercase;
 +
  margin: 25px;
 +
}
 +
.button-fill.grey {
 +
  background: #445561;
 +
  color: white;
 +
}
 +
.button-fill.orange {
 +
  background: #f26b43;
 +
  color: #fff;
 +
}
 +
.button-fill.orange .button-inside {
 +
  color: #f26b43;
 +
}
 +
.button-fill.orange .button-inside.full {
 +
  border: 1px solid #f26b43;
 +
}
 +
.button-text {
 +
  padding: 0 25px;
 +
  line-height: 56px;
 +
  letter-spacing: .1em;
 +
}
 +
.button-inside {
 +
  width: 0px;
 +
  height: 54px;
 +
  margin: 0;
 +
  float: left;
 +
  position: absolute;
 +
  top: 1px;
 +
  left: 50%;
 +
  line-height: 54px;
 +
  color: #445561;
 +
  background: #fff;
 +
  text-align: center;
 +
  overflow: hidden;
 +
  -webkit-transition: width 0.5s, left 0.5s, margin 0.5s;
 +
  -moz-transition: width 0.5s, left 0.5s, margin 0.5s;
 +
  -o-transition: width 0.5s, left 0.5s, margin 0.5s;
 +
  transition: width 0.5s, left 0.5s, margin 0.5s;
 +
}
 +
.button-inside.full {
 +
  width: 100%;
 +
  left: 0%;
 +
  top: 0;
 +
  margin-right: -50px;
 +
  border: 1px solid #445561;
 +
}
 +
.inside-text {
 +
  text-align: center;
 +
  position: absolute;
 +
  right: 50%;
 +
  letter-spacing: .1em;
 +
  text-transform: uppercase;
 +
  -webkit-transform: translateX(50%);
 +
  -moz-transform: translateX(50%);
 +
  -ms-transform: translateX(50%);
 +
  transform: translateX(50%);
 +
}
 +
</style>
 +
 +
<!--JS-->
 +
<script src='http://assets.codepen.io/assets/libs/fullpage/jquery-ab8e840c3dad7ccf2deadb8c40d53bdb.js'></script>
 +
<script type="text/javascript">
 +
$(".button-fill").hover(function () {
 +
    $(this).children(".button-inside").addClass('full');
 +
}, function() {
 +
  $(this).children(".button-inside").removeClass('full');
 +
});
 +
</script>
 +
<!--PART I: CAROUSEL-->
<!--PART I: CAROUSEL-->
Line 1,395: Line 1,475:
</head>
</head>
-
<!--PART IV: Text Buttons-->
 
-
<!--CSS-->
 
-
<style>
 
-
.button-fill {
 
-
  text-align: center;
 
-
  background: #ccc;
 
-
  display: inline-block;
 
-
  position: relative;
 
-
  text-transform: uppercase;
 
-
  margin: 25px;
 
-
}
 
-
.button-fill.grey {
 
-
  background: #445561;
 
-
  color: white;
 
-
}
 
-
.button-fill.orange {
 
-
  background: #f26b43;
 
-
  color: #fff;
 
-
}
 
-
.button-fill.orange .button-inside {
 
-
  color: #f26b43;
 
-
}
 
-
.button-fill.orange .button-inside.full {
 
-
  border: 1px solid #f26b43;
 
-
}
 
-
.button-text {
 
-
  padding: 0 25px;
 
-
  line-height: 56px;
 
-
  letter-spacing: .1em;
 
-
}
 
-
.button-inside {
 
-
  width: 0px;
 
-
  height: 54px;
 
-
  margin: 0;
 
-
  float: left;
 
-
  position: absolute;
 
-
  top: 1px;
 
-
  left: 50%;
 
-
  line-height: 54px;
 
-
  color: #445561;
 
-
  background: #fff;
 
-
  text-align: center;
 
-
  overflow: hidden;
 
-
  -webkit-transition: width 0.5s, left 0.5s, margin 0.5s;
 
-
  -moz-transition: width 0.5s, left 0.5s, margin 0.5s;
 
-
  -o-transition: width 0.5s, left 0.5s, margin 0.5s;
 
-
  transition: width 0.5s, left 0.5s, margin 0.5s;
 
-
}
 
-
.button-inside.full {
 
-
  width: 100%;
 
-
  left: 0%;
 
-
  top: 0;
 
-
  margin-right: -50px;
 
-
  border: 1px solid #445561;
 
-
}
 
-
.inside-text {
 
-
  text-align: center;
 
-
  position: absolute;
 
-
  right: 50%;
 
-
  letter-spacing: .1em;
 
-
  text-transform: uppercase;
 
-
  -webkit-transform: translateX(50%);
 
-
  -moz-transform: translateX(50%);
 
-
  -ms-transform: translateX(50%);
 
-
  transform: translateX(50%);
 
-
}
 
-
</style>
 
-
 
-
<!--JS-->
 
-
<script src='http://assets.codepen.io/assets/libs/fullpage/jquery-ab8e840c3dad7ccf2deadb8c40d53bdb.js'></script>
 
-
<script type="text/javascript">
 
-
$(".button-fill").hover(function () {
 
-
    $(this).children(".button-inside").addClass('full');
 
-
}, function() {
 
-
  $(this).children(".button-inside").removeClass('full');
 
-
});
 
-
</script>
 

Revision as of 00:59, 29 September 2014

Wheeltz - CSS3 Navigational Wheel Menu

  • Home
  • University
  • Facebook
  • Twitter