three+gsap实现鼠标悬浮圆圈反色图文卡片交互效果代码
代码语言:html
所属分类:其他
代码描述:three+gsap实现鼠标悬浮圆圈反色图文卡片交互效果代码
代码标签: three gsap 鼠标 悬浮 圆圈 反色 图文 卡片 交互
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <style> @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); :root { --circle-size: 0%; /* Set the initial size */ } body { font-family: sans-serif; display: flex; justify-content: center; align-items: center; min-height: 100vh; font-family: "Inter", sans-serif; background: hsla(186, 33%, 94%, 1); background: linear-gradient( 90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100% ); background: -moz-linear-gradient( 90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100% ); background: -webkit-linear-gradient( 90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100% ); filter: progid: DXImageTransform.Microsoft.gradient( startColorstr="#EBF4F5", endColorstr="#B5C6E0", GradientType=1 ); } .container { display: flex; flex-direction: row; justify-content: center; max-width: 1000px; position: relative; } .card { pointer: none; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0