css实现多彩卡片翻滚动画效果代码
代码语言:html
所属分类:动画
代码描述:css实现多彩卡片翻滚动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> body { display: flex; justify-content: center; align-items: center; height: 100vh; margin: 0; background-color: #a3def8; } .container { width: 10em; height: 10em; position: relative; transform-style: preserve-3d; animation: rotate 2s infinite linear; } .container div { position: absolute; width: 10em; height: 10em; border-radius: 40px; } .shape1 { transform: rotateY(0deg); background: #f9717f; border-width: 10px; border-style: dotted; } .shape2 { transform: rotateY(30deg); background: #ffcc7c; border-width: 10px; border-style: dotted; } .shape3 { transform: rotateY(-30deg); background: #5ac18e; border-width: 10px; border-style: dotted; } .shape4 { transform: rotateY(60deg); .........完整代码请登录后点击上方下载按钮下载查看
网友评论0