css实现鼠标点击卡片层叠伸缩动画效果代码
代码语言:html
所属分类:其他
代码描述:css实现鼠标点击卡片层叠伸缩动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url('https://fonts.googleapis.com/css2?family=Concert+One&family=Emilys+Candy&family=Oswald&display=swap'); html, body { width: 100%; height: 100%; overflow: hidden; font-family: 'Oswald', sans-serif; } .general { position: relative; top: 50%; transform: translateY(-50%); cursor: pointer; } .general:active .two { transform: rotate(-5deg) translateX(90px) scale(0.9); } .general:active .three { transform: rotate(5deg) translateX(-90px) scale(0.9); } .card { display: flex; align-items: center; justify-content: center; color: white; width: 100px; height: 100px; font-size: 1.5em; m.........完整代码请登录后点击上方下载按钮下载查看
网友评论0