語法

.container {
  transition: [transition-property] [transition-duration] [transition-timing-function] [transition-delay];
}

 

移動滑鼠至物件上(Hover)以查看漸變效果

顏色漸變

大小漸變

形狀漸變

方向漸變
+ transform

容器 CSS

div.container {
  background-color: green;
  border: 2px dotted #333333;
  width: 100px;
  height: 100px;
  float: left;
  margin: 5px;
  cursor: pointer;
}

 

 

 

Go to top