💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
## 图片遮罩效果 >效果如图 ![](https://box.kancloud.cn/d6bdb939c9d8ede23373f1c81b0473d0_530x491.gif) >html代码 ``` <div class="box"> <div class="bg"></div> <div class="cover""><h1>第一天</h1></div> </div> ``` >css代码 ``` .box { width: 300px; height: 300px; margin: 100px auto; position: relative; overflow: hidden; } .box>div { position: absolute; height: 300px; width: 300px; } .bg { background: aqua; top: 0; left: 0; } .cover { top: 0; left: 0; background: rgba(0, 0, 0, 0.2); transition: 1s; transform-origin: left bottom; //选择旋转点, 此时为左下角 display: flex; justify-content: center; align-items: center; } .box:hover .cover { transform: rotate(-90deg); } .cover h1 { color: #fff; } ```