Template:CSS/team

From 2014.igem.org

(Difference between revisions)
Line 11: Line 11:
}
}
 +
 +
.image {
 +
   
 +
    float: left;
 +
    height: 130px;
 +
    margin: 10px;
 +
    overflow: hidden;
 +
    width: 300px;
 +
    cursor:pointer;
 +
}
 +
.outerrect{
.outerrect{
position:absolute;
position:absolute;
Line 39: Line 50:
height:130px;
height:130px;
border:solid thin black;
border:solid thin black;
-
background-image:url(https://static.igem.org/mediawiki/2014/2/23/Sampleimage.png);
 
border-radius:0px 0px 10px 10px;
border-radius:0px 0px 10px 10px;
 +
}
 +
 +
/* move horizontal image */
 +
 +
.textblock img {
 +
  margin-left: 0px;
 +
  -webkit-transition: margin 1s ease;
 +
    -moz-transition: margin 1s ease;
 +
      -o-transition: margin 1s ease;
 +
      -ms-transition: margin 1s ease;
 +
          transition: margin 1s ease;
 +
}
 +
 +
.textblock img:hover {
 +
  margin-left: -300px;
}
}

Revision as of 19:49, 25 September 2014