gsap实现全屏动感饮料幻灯片效果代码
代码语言:html
所属分类:幻灯片
代码描述:gsap实现全屏动感饮料幻灯片效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.4.0.css"> <style> @import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap"); /* Common Style */ * { margin: 0; padding: 0; box-sizing: border-box; } img { width: 100%; height: auto; } body { overflow: hidden !important; } a:focus { outline: none; box-shadow: none; } input:focus { outline: none; border: none; box-shadow: none; } input:focus-visible { outline: none; border: none; box-shadow: none; } button:focus, :focus-visible { outline: none; border: none; } /* Root*/ :root { --pear-can: #e6ffde; --pear-logo: #03403f; --apple-can: #f2675a; --apple-logo: #ec4458; --exotic-can: #9590f1; --black-color: #000000; --white-color: #ffffff; --exotic-logo: #6464ff; --pear-background: #c9e78a; --apple-background: #ffb2b2; --exotic-background: #c1bff2; } /* Typography */ h1 { font-family: "Lexend"; font-size: 449px !important; line-height: normal !important; color: var(--white-color) !important; margin: 0 !important; } h2 { font-family: "Lexend"; font-size: 40px; line-height: normal; margin: 0; font-weight: 900; } /* Header */ header { padding: 22px 28px 0; position: fixed; top: 0; left: 0; width: 100vw; z-index: 99; text-align: center; } .logo { color: var(--pear-logo); } h1 { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } /* Cane Image and Wrapper Image */ .cane-image { max-width: 265px; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); mask-image: url(//repo.bfw.wiki/bfwrepo/images/fruts/cane.svg); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center center; mask-position: center center; -webkit-mask-size: 100% auto; mask-size: 100% auto; overflow: hidden; } .cane-image img { width: 100%; } .cane-labels { position: absolute; top: 0; left: 0; width: 300% !important; mix-blend-mode: multiply; transition: all ease-in-out 0.3s; } /*Fruits Images */ .fruit-image { opacity: 1; position: absolute; } .image-one { max-width: 282px; bottom: 100px; } .image-two { max-width: 247px; top: 23%; left: 25%; } .image-three { max-width: 211px; top: 23%; right: 25%; } .image-four { max-width: 294px; bottom: 100px; right.........完整代码请登录后点击上方下载按钮下载查看
网友评论0