原生js+css实现自适应堆叠图片幻灯片切换效果代码
代码语言:html
所属分类:幻灯片
代码描述:原生js+css实现自适应堆叠图片幻灯片切换效果代码
代码标签: 原生js css 自适应 堆叠 图片 幻灯片 切换
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Quicksand:wght@300..700&display=swap"); *, *:before, *:after { margin: 0; padding: 0; box-sizing: border-box; font-family: "Quicksand", sans-serif; } body { background-color: #0d0a0b; background: linear-gradient(145deg, #55566a 0%, #131318 76%); } main { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; place-items: center; min-height: 100vh; } /* Content */ .content { padding-left: 120px; color: #c7c7c7c9; } .content h1 { font-family: "Dancing Script", cursive; font-size: clamp(2.5rem, 4vw, 6rem); font-weight: 700; background: -webkit-linear-gradient(0deg, #f76591, #ffc16f); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1.1; margin-bottom: 36px; padding-left: 10px; } .content p { font-size: clamp(0.9rem, 4vw, 1.2rem); line-height: 1.6; padding-right: 100px; } .btn { background-color: #f76591; background-image: linear-gradient(-180deg, #ffc16f, #f76591); font-size: clamp(0.8rem, 8vw, 0.9rem); font-weight: 600; color: #fff; width: max-content; outl.........完整代码请登录后点击上方下载按钮下载查看
网友评论0