Difference between revisions of "Template:TokyoTech/css/main"

Line 415: Line 415:
 
}
 
}
  
img.expand { zoom: 300% }
+
.scale {
 +
    width: 400px;
 +
    height: 300px;
 +
    overflow: hidden;
 +
}
 +
.scale img {
 +
    -moz-transition: -moz-transform 0.5s linear;
 +
    -webkit-transition: -webkit-transform 0.5s linear;
 +
    -o-transition: -o-transform 0.5s linear;
 +
    -ms-transition: -ms-transform 0.5s linear;
 +
    transition: transform 0.5s linear;
 +
}
 +
.scale img:hover {
 +
    -webkit-transform: scale(2.5);
 +
    -moz-transform: scale(2.5);
 +
    -o-transform: scale(2.5);
 +
    -ms-transform: scale(2.5);
 +
    transform: scale(2.5);
 +
}
  
 
</style>
 
</style>
  
 
</html>
 
</html>

Revision as of 18:40, 31 October 2017