knockout实现卡片引用边缘动画效果代码
代码语言:html
所属分类:其他
代码描述:knockout实现卡片引用边缘动画效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Lato:wght@400&display=swap"); * { box-sizing: border-box; margin: auto; } body { position: relative; height: 100vh; display: flex; flex-wrap: wrap; background: #444654; font-family: Lato; perspective: 1440px; } #testimonials { width: 100%; height: 100%; } #testimonials .container { width: 100%; height: 100%; padding: 0 11vw; display: flex; flex-wrap: wrap; } #testimonials .container .struct { width: 50%; min-width: 400px; aspect-ratio: 2/1; padding: 40px; } #testimonials .container .struct.full { width: 100%; } #testimonials .container .struct:nth-of-type(2n) .frame svg { transform: rotateY(180deg); } #testimonials .container .struct:nth-of-type(2n) .frame .img { left: 100%; } #testimonials .container .frame { position: relative; padding: 40px; min-height: 100%; transition: transform 0.3s ease; } #testimonials .container .frame:hover { transform: scale(1.12); } #testimonials .con.........完整代码请登录后点击上方下载按钮下载查看
网友评论0