Difference between revisions of "Team:TP-CC San Diego/Templates/AnimationCSS"

 
(31 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<head>
 
<head>
 
<style>
 
<style>
 +
.ih-item.circle.effect10 .img {
 +
  z-index: 11;
 +
  -webkit-transform: scale(1);
 +
  -moz-transform: scale(1);
 +
  -ms-transform: scale(1);
 +
  -o-transform: scale(1);
 +
  transform: scale(1);
 +
  -webkit-transition: all 0.35s ease-in-out;
 +
  -moz-transition: all 0.35s ease-in-out;
 +
  transition: all 0.35s ease-in-out;
 +
}
 +
.ih-item.circle.effect10.colored .info {
 +
  background: #1a4a72;
 +
}
 +
.ih-item.circle.effect10 .info {
 +
  background: #333333;
 +
  opacity: 0;
 +
  -webkit-transform: scale(0);
 +
  -moz-transform: scale(0);
 +
  -ms-transform: scale(0);
 +
  -o-transform: scale(0);
 +
  transform: scale(0);
 +
  -webkit-transition: all 0.35s ease-in-out;
 +
  -moz-transition: all 0.35s ease-in-out;
 +
  transition: all 0.35s ease-in-out;
 +
}
 +
.ih-item.circle.effect10 .info h3 {
 +
  color: #fff;
 +
  text-transform: uppercase;
 +
  position: relative;
 +
  letter-spacing: 2px;
 +
  font-size: 22px;
 +
  text-shadow: 0 0 1px white, 0 1px 2px rgba(0, 0, 0, 0.3);
 +
}
 +
.ih-item.circle.effect10 .info p {
 +
  color: #bbb;
 +
  font-style: italic;
 +
  font-size: 12px;
 +
  border-top: 1px solid rgba(255, 255, 255, 0.5);
 +
}
 +
.ih-item.circle.effect10 a:hover .info {
 +
  visibility: visible;
 +
  opacity: 1;
 +
  -webkit-transform: scale(1);
 +
  -moz-transform: scale(1);
 +
  -ms-transform: scale(1);
 +
  -o-transform: scale(1);
 +
  transform: scale(1);
 +
}
  
ih-item.circle.effect13 .info {
+
.ih-item.circle.effect10.top_to_bottom .info h3 {
background:#333;
+
  margin: 0 30px;
background:rgba(0,0,0,0.6);
+
  padding: 25px 0 0 0;
opacity:0;
+
  height: 78px;
pointer-events:none;
+
}
-webkit-transition:all 0.35s ease-in-out;
+
.ih-item.circle.effect10.top_to_bottom .info p {
-moz-transition:all 0.35s ease-in-out;
+
  margin: 0 30px;
transition:all 0.35s ease-in-out}
+
  padding: 5px;
 +
}
 +
.ih-item.circle.effect10.top_to_bottom a:hover .img {
 +
  -webkit-transform: translateY(50px) scale(0.5);
 +
  -moz-transform: translateY(50px) scale(0.5);
 +
  -ms-transform: translateY(50px) scale(0.5);
 +
  -o-transform: translateY(50px) scale(0.5);
 +
  transform: translateY(50px) scale(0.5);
 +
}
  
.ih-item.circle.effect13 .info h3{
+
.ih-item.circle.effect10.bottom_to_top .info h3 {
visibility:hidden;
+
  margin: 95px 30px 0;
color:#fff;
+
  padding: 25px 0 0 0;
text-transform:uppercase;
+
  height: 78px;
position: absolute;
+
}
letter-spacing:2px;
+
.ih-item.circle.effect10.bottom_to_top .info p {
font-size:22px;
+
  margin: 0 30px;
margin:0 30px;
+
  padding: 5px;
padding:55px 0 0 0;
+
}
height:110px;
+
.ih-item.circle.effect10.bottom_to_top a:hover .img {
text-shadow:0 0 1px #fff,0 1px 2px rgba(0,0,0,0.3);
+
  -webkit-transform: translateY(-50px) scale(0.5);
-webkit-transition:all 0.35s ease-in-out;
+
  -moz-transform: translateY(-50px) scale(0.5);
-moz-transition:all 0.35s ease-in-out;
+
  -ms-transform: translateY(-50px) scale(0.5);
transition:all 0.35s ease-in-out}
+
  -o-transform: translateY(-50px) scale(0.5);
 +
  transform: translateY(-50px) scale(0.5);
 +
}
 +
   
 +
.ih-item.circle.effect10 .img {
 +
z-index: 11;
 +
-webkit-transform: scale(1);
 +
-moz-transform: scale(1);
 +
-ms-transform: scale(1);
 +
-o-transform: scale(1);
 +
transform: scale(1);
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
  
.ih-item.circle.effect13 .info p{
+
.ih-item.circle.effect10.colored .info {
visibility:hidden;
+
background: #1a4a72
color:#bbb;
+
}
padding:10px 5px;
+
font-style:italic;
+
margin:0 30px;
+
font-size:12px;
+
border-top:1px solid rgba(255,255,255,0.5);
+
-webkit-transition:all 0.35s ease-in-out;
+
-moz-transition:all 0.35s ease-in-out;
+
transition:all 0.35s ease-in-out}
+
  
.ih-item.circle.effect13 a:hover .info{
+
.ih-item.circle.effect10 .info {
opacity:1}
+
background: #333;
 +
opacity: 0;
 +
-webkit-transform: scale(0);
 +
-moz-transform: scale(0);
 +
-ms-transform: scale(0);
 +
-o-transform: scale(0);
 +
transform: scale(0);
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
  
.ih-item.circle.effect13 a:hover h3{
+
.ih-item.circle.effect10 .info h3 {
visibility:visible}
+
color: #fff;
 +
text-transform: uppercase;
 +
position: relative;
 +
letter-spacing: 2px;
 +
font-size: 22px;
 +
text-shadow: 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.3)
 +
}
  
.ih-item.circle.effect13 a:hover p{
+
.ih-item.circle.effect10 .info p {
visibility:visible}
+
color: #bbb;
 +
font-style: italic;
 +
font-size: 12px;
 +
border-top: 1px solid rgba(255, 255, 255, 0.5)
 +
}
  
.ih-item.circle.effect13.from_left_and_right .info h3{
+
.ih-item.circle.effect10 a:hover .info {
-webkit-transform:translateX(-100%);
+
visibility: visible;
-moz-transform:translateX(-100%);
+
opacity: 1;
-ms-transform:translateX(-100%);
+
-webkit-transform: scale(1);
-o-transform:translateX(-100%);
+
-moz-transform: scale(1);
transform:translateX(-100%)}
+
-ms-transform: scale(1);
 +
-o-transform: scale(1);
 +
transform: scale(1)
 +
}
  
.ih-item.circle.effect13.from_left_and_right .info p{
+
.ih-item.circle.effect10.top_to_bottom .info h3 {
-webkit-transform:translateX(100%);
+
margin: 0 30px;
-moz-transform:translateX(100%);
+
padding: 25px 0 0 0;
-ms-transform:translateX(100%);
+
height: 78px
-o-transform:translateX(100%);
+
}
transform:translateX(100%)}
+
  
.ih-item.circle.effect13.from_left_and_right a:hover h3{
+
.ih-item.circle.effect10.top_to_bottom .info p {
-webkit-transform:translateX(0);
+
margin: 0 30px;
-moz-transform:translateX(0);
+
padding: 5px
-ms-transform:translateX(0);
+
}
-o-transform:translateX(0);
+
transform:translateX(0)}
+
  
.ih-item.circle.effect13.from_left_and_right a:hover p{
+
.ih-item.circle.effect10.top_to_bottom a:hover .img {
-webkit-transform:translateX(0);
+
-webkit-transform: translateY(50px) scale(0.5);
-moz-transform:translateX(0);
+
-moz-transform: translateY(50px) scale(0.5);
-ms-transform:translateX(0);
+
-ms-transform: translateY(50px) scale(0.5);
-o-transform:translateX(0);
+
-o-transform: translateY(50px) scale(0.5);
transform:translateX(0)}
+
transform: translateY(50px) scale(0.5)
 +
}
  
.ih-item.circle.effect13.top_to_bottom .info h3{
+
.ih-item.circle.effect10.bottom_to_top .info h3 {
-webkit-transform:translateY(-100%);
+
margin: 95px 30px 0;
-moz-transform:translateY(-100%);
+
padding: 25px 0 0 0;
-ms-transform:translateY(-100%);
+
height: 78px
-o-transform:translateY(-100%);
+
}
transform:translateY(-100%)}
+
  
.ih-item.circle.effect13.top_to_bottom .info p{
+
.ih-item.circle.effect10.bottom_to_top .info p {
-webkit-transform:translateY(-100%);
+
margin: 0 30px;
-moz-transform:translateY(-100%);
+
padding: 5px
-ms-transform:translateY(-100%);
+
}
-o-transform:translateY(-100%);
+
transform:translateY(-100%)}
+
  
.ih-item.circle.effect13.top_to_bottom a:hover h3{
+
.ih-item.circle.effect10.bottom_to_top a:hover .img {
-webkit-transform:translateY(0);
+
-webkit-transform: translateY(-50px) scale(0.5);
-moz-transform:translateY(0);
+
-moz-transform: translateY(-50px) scale(0.5);
-ms-transform:translateY(0);
+
-ms-transform: translateY(-50px) scale(0.5);
-o-transform:translateY(0);
+
-o-transform: translateY(-50px) scale(0.5);
transform:translateY(0)}
+
transform: translateY(-50px) scale(0.5)
 +
}
 +
   
 +
   
 +
    .ih-item {
 +
position: relative;
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
  
.ih-item.circle.effect13.top_to_bottom a:hover p{
+
.ih-item,
-webkit-transform:translateY(0);
+
.ih-item * {
-moz-transform:translateY(0);
+
-webkit-box-sizing: border-box;
-ms-transform:translateY(0);
+
-moz-box-sizing: border-box;
-o-transform:translateY(0);
+
box-sizing: border-box
transform:translateY(0)}
+
}
  
.ih-item.circle.effect13.bottom_to_top .info h3{
+
.ih-item a {
-webkit-transform:translateY(100%);
+
color: #333
-moz-transform:translateY(100%);
+
}
-ms-transform:translateY(100%);
+
-o-transform:translateY(100%);
+
transform:translateY(100%)}
+
  
.ih-item.circle.effect13.bottom_to_top .info p{
+
.ih-item a:hover {
-webkit-transform:translateY(100%);
+
text-decoration: none
-moz-transform:translateY(100%);
+
}
-ms-transform:translateY(100%);
+
-o-transform:translateY(100%);
+
transform:translateY(100%)}
+
  
.ih-item.circle.effect13.bottom_to_top a:hover h3{
+
.ih-item img {
-webkit-transform:translateY(0);
+
width: 100%;
-moz-transform:translateY(0);
+
height: 100%
-ms-transform:translateY(0);
+
}
-o-transform:translateY(0);
+
transform:translateY(0)}
+
  
.ih-item.circle.effect13.bottom_to_top a:hover p{
+
.ih-item.circle {
-webkit-transform:translateY(0);
+
position: relative;
-moz-transform:translateY(0);
+
width: 300px;
-ms-transform:translateY(0);
+
height: 300px;
-o-transform:translateY(0);
+
border-radius: 50%
transform:translateY(0)}
+
}
  
<!--info-back-->
+
.ih-item.circle .img {
 +
position: relative;
 +
width: 300px;
 +
height: 300px;
 +
border-radius: 50%
 +
}
  
.info-back{background:#1a4a72;
+
.ih-item.circle .img:before {
background:rgba(26,74,114,0.6)}
+
position: absolute;
 +
display: block;
 +
content: '';
 +
width: 100%;
 +
height: 100%;
 +
border-radius: 50%;
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
  
.info{-webkit-transition:all 0.35s ease-in-out;
+
.ih-item.circle .img img {
-moz-transition:all 0.35s ease-in-out;
+
border-radius: 50%
transition:all 0.35s ease-in-out;
+
}
-webkit-transform-style:preserve-3d;
+
-moz-transform-style:preserve-3d;
+
-ms-transform-style:preserve-3d;
+
-o-transform-style:preserve-3d;
+
transform-style:preserve-3d}
+
  
.info .info-back{visibility:hidden;
+
.ih-item.circle .info {
border-radius:50%;
+
position: absolute;
width:100%;
+
top: 0;
height:100%;
+
bottom: 0;
background:#333;
+
left: 0;
background:rgba(0,0,0,0.6);
+
right: 0;
-webkit-transform:rotate3d(0, 1, 0, 180deg);
+
text-align: center;
-moz-transform:rotate3d(0, 1, 0, 180deg);
+
border-radius: 50%;
-ms-transform:rotate3d(0, 1, 0, 180deg);
+
-webkit-backface-visibility: hidden;
-o-transform:rotate3d(0, 1, 0, 180deg);
+
backface-visibility: hidden
transform:rotate3d(0, 1, 0, 180deg);
+
}
-webkit-backface-visibility:hidden;
+
backface-visibility:hidden}
+
  
.info h3{color:#fff;
 
text-transform:uppercase;
 
position: absolute;
 
letter-spacing:2px;
 
font-size:22px;
 
margin:0 30px;
 
padding:55px 0 0 0;
 
height:110px;
 
text-shadow:0 0 1px #fff,0 1px 2px rgba(0,0,0,0.3)}
 
  
.info p{color:#bbb;
+
.ih-item.circle.effect10 .img {
padding:10px 5px;
+
z-index: 11;
font-style:italic;
+
-webkit-transform: scale(1);
margin:0 30px;
+
-moz-transform: scale(1);
font-size:12px;
+
-ms-transform: scale(1);
border-top:1px solid rgba(255,255,255,0.5)}
+
-o-transform: scale(1);
 +
transform: scale(1);
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
  
a:hover .info{-webkit-transform:rotate3d(0, 1, 0, -180deg);
+
.ih-item.circle.effect10.colored .info {
-moz-transform:rotate3d(0, 1, 0, -180deg);
+
background: white;
-ms-transform:rotate3d(0, 1, 0, -180deg);
+
}
-o-transform:rotate3d(0, 1, 0, -180deg);
+
 
transform:rotate3d(0, 1, 0, -180deg)}
+
.ih-item.circle.effect10 .info {
 +
background: white;
 +
opacity: 0;
 +
-webkit-transform: scale(0);
 +
-moz-transform: scale(0);
 +
-ms-transform: scale(0);
 +
-o-transform: scale(0);
 +
transform: scale(0);
 +
-webkit-transition: all 0.35s ease-in-out;
 +
-moz-transition: all 0.35s ease-in-out;
 +
transition: all 0.35s ease-in-out
 +
}
 +
 
 +
.ih-item.circle.effect10 .info h3 {
 +
color:  black;
 +
text-transform: uppercase;
 +
position: relative;
 +
letter-spacing: 2px;
 +
font-size: 22px;
 +
text-shadow: 0 0 1px #fff, 0 1px 2px rgba(0, 0, 0, 0.3)
 +
}
 +
 
 +
 
 +
.ih-item.circle.effect10 a:hover .info {
 +
visibility: visible;
 +
opacity: 1;
 +
-webkit-transform: scale(1);
 +
-moz-transform: scale(1);
 +
-ms-transform: scale(1);
 +
-o-transform: scale(1);
 +
transform: scale(1)
 +
}
 +
 
 +
.ih-item.circle.effect10.top_to_bottom .info h3 {
 +
margin: 0 30px;
 +
padding: 25px 0 0 0;
 +
height: 78px
 +
}
 +
 
 +
.ih-item.circle.effect10.top_to_bottom .info p {
 +
margin: 0 30px;
 +
padding: 5px
 +
}
 +
 
 +
.ih-item.circle.effect10.top_to_bottom a:hover .img {
 +
-webkit-transform: translateY(50px) scale(0.5);
 +
-moz-transform: translateY(50px) scale(0.5);
 +
-ms-transform: translateY(50px) scale(0.5);
 +
-o-transform: translateY(50px) scale(0.5);
 +
transform: translateY(50px) scale(0.5)
 +
}
 +
 
 +
.ih-item.circle.effect10.bottom_to_top .info h3 {
 +
margin: 95px 30px 0;
 +
padding: 25px 0 0 0;
 +
height: 78px
 +
}
 +
 
 +
.ih-item.circle.effect10.bottom_to_top .info p {
 +
margin: 0 30px;
 +
padding: 5px
 +
}
 +
 
 +
.ih-item.circle.effect10.bottom_to_top a:hover .img {
 +
-webkit-transform: translateY(-50px) scale(0.5);
 +
-moz-transform: translateY(-50px) scale(0.5);
 +
-ms-transform: translateY(-50px) scale(0.5);
 +
-o-transform: translateY(-50px) scale(0.5);
 +
transform: translateY(-50px) scale(0.5)
 +
}
  
a:hover .info .info-back{visibility:visible}
 
 
</style>
 
</style>
 
</head>
 
</head>

Latest revision as of 21:51, 30 October 2017