gsap实现全屏家具电商类图文幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:gsap实现全屏家具电商类图文幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Lato&display=swap"); html { box-sizing: border-box; --gutter: 2.5rem; --color-primary: #252525; --color-secondary: #fff; --color-secondary-rgb: 255, 255, 255; } html *, html *::before, html *::after { box-sizing: inherit; } body { margin: 0; height: 100vh; display: flex; overflow: hidden; flex-direction: column; color: var(--color-primary); font-family: "Lato", sans-serif; } button { all: unset; cursor: pointer; -webkit-tap-highlight-color: transparent ; } .inner-container { height: 100%; margin: 0 auto; max-width: 85rem; width: calc(100% - var(--gutter)); } /* ---General classes--- */ .flex-row { display: flex; } .flex-column { display: flex; flex-direction: column; } .flex-center { display: flex; align-items: center; justify-content: center; } .justify-between { display: flex; justify-content: space-between; } /* ---General classes--- */ .slider { height: 100%; overflow: hidden; background-color: var(--color-secondary); } .slider__wrraper { height: 100%; justify-content: flex-end; } .slider__img { width: 20rem; align-self: center; margin-bottom: 1.7rem; } .slider__context { font-weight: 900; font-size: 1.55rem; width: fit-content; margin-bottom: 1.5rem; text-transform: capitalize; } .slider__title { font-size: 1.1em; margin: 0..........完整代码请登录后点击上方下载按钮下载查看
网友评论0