CSS3动画效果的运用越来越广泛,可以使网页更加生动和有趣。如果你正在寻找一些免费的CSS3动画效果,想要美化你的网站,那么这篇文章就是为你准备的。以下是一些免费下载的CSS3动画效果。/ 方块加载动...
CSS3动画效果的运用越来越广泛,可以使网页更加生动和有趣。如果你正在寻找一些免费的CSS3动画效果,想要美化你的网站,那么这篇文章就是为你准备的。
以下是一些免费下载的CSS3动画效果。
/* 方块加载动画 */
@keyframes cube {
0%, 10% {transform: perspective(140px) rotateX(-180deg); opacity: 0;}
25% {transform: perspective(140px) rotateX(0deg); opacity: 1;}
75% {transform: perspective(140px) rotateY(0deg); opacity: 1;}
100%, {transform: perspective(140px) rotateY(180deg); opacity: 0;}
}
.cube {
width: 70px;
height: 70px;
background-color: #fff;
margin: 100px auto;
transform: translateZ(-70px);
animation: cube 2.4s infinite linear;
} /* 翻转卡片动画 */
.card-container {
width: 100%;
height: 100%;
position: absolute;
perspective: 900px;
}
.card {
width: 100%;
height: 100%;
position: absolute;
transform-style: preserve-3d;
transition: all 0.3s ease-in-out;
}
.card:hover {
transform: rotateY(180deg);
}
.card .front,
.card .back {
width: 100%;
height: 100%;
position: absolute;
backface-visibility: hidden;
}
.card .front {
transform: rotateY(0deg);
}
.card .back {
transform: rotateY(180deg);
} 以上代码仅供参考,您可以根据自己的需求进行修改和定制。它们可以帮助你实现一些酷炫的CSS3动画效果,让你的网站更加生动有趣。
总之,选择适合自己网站的CSS3动画效果是很重要的。它不仅能提高用户的体验和网站的曝光率,也能使您的网站更加便于记忆和留下深刻的印象。