swiper实现图片卡片堆叠拖拽切换更换效果代码
代码语言:html
所属分类:拖放
代码描述:swiper实现图片卡片堆叠拖拽切换更换效果代码,带有动态漂浮背景,左侧显示文字,右侧图片可拖拽更换。
代码标签: swiper 图片 卡片 堆叠 拖拽 切换 更换
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/swiper-bundle.8.4.7.css"> <style> @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700;800&display=swap'); *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Comfortaa', cursive; } section { position: relative; display: flex; justify-content: center; align-items: center; background: #262626; min-height: 100vh; overflow: hidden; } .content { display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 30px; background: linear-gradient( 180deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 100% ); backdrop-filter: blur(30px); border-radius: 20px; width: min(900px, 100%); box-shadow: 0 0.5px 0 1px rgba(255, 255, 255, 0.23) inset, 0 1px 0 0 rgba(255, 255, 255, 0.66) inset, 0 4px 16px rgba(0, 0, 0, 0.12); z-index: 10; } .info { display:flex; flex-direction: column; justify-content: center; align-items: center; max-width: 450px; padding: 0 35px; text-align: justify; } .info p{ color: #fff; font-weight: 500; font-size: 1rem; margin-bottom: 20px; line-height: 1.5; } .movie-night { background: linear-gradient(225deg, #ff3cac 0%, #784ba0 50%, #2b86c5 100%); } .btn { display: block; padding: 10px 40px; margin: 10px auto; font-size: 1.1rem; font-weight: 700; bord.........完整代码请登录后点击上方下载按钮下载查看
网友评论0