div+css布局实现广告牌灯箱效果代码

代码语言:html

所属分类:布局界面

代码描述:div+css布局实现广告牌灯箱效果代码

代码标签: div css 布局 广告牌 灯箱

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">

  
  
  
<style>
@import url(https://fonts.bunny.net/css?family=doppio-one:400);

:root{
  --clr-txt: rgb(8, 47, 73);
  --clr-border: rgb(8, 47, 73);
  --clr-cta: rgb(2, 132, 199);
}

body{
  background: white;
  color: rgb(203, 213, 225);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-family: system-ui;
  background-image: radial-gradient(var(--clr-cta), var(--clr-border));
}
figure{
  position: relative;
  width: min(calc(100% - 2rem), 600px);
}
figure::before{
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("//repo.bfw.wiki/bfwrepo/image/674e4000920c8.png");
  background-size: 107%;
  /*opacity: .5;*/
}
figcaption{
  font-size: .8rem;
  margin: 1rem 0 0;
  position: absolute;
  top: 100%;
  right: 0;
}
svg {
  width: 100%;
  font-family: 'Doppio One', sans-serif;
  display: block;
    box-shadow: 0 0 15px 20px rgba(0 0 0 / .15);
}

svg rect{
  width: 100%;
  height: 100%;
  fill: none;
  
  transition: var(--duration) linear;
  /*filter: drop-shadow(3px 3px 0 rgb(244, 63, 94));*/

}
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0