前端3D炫酷展开效果

效果图

.vue

vue 复制代码
<template>
  <div class="expand">
    <img class="expand-img expand-img-1" src="https://get.hnzmsz.com/ly/1-1.png" />
    <img class="expand-img expand-img-2" src="https://get.hnzmsz.com/ly/1-2.png" />
  </div>
</template>

<script setup>
</script>

<style scoped>
.expand{
  position: relative;
  width: 230px;
  height: 350px;
  margin: 0 auto;

  --s:1s;
}

.expand-img{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.expand-img-1{
  transform-origin: bottom;
  transition: all var(--s);
}

.expand-img-2{
  transform-origin: bottom;
  transition: all var(--s);
}

.expand:hover .expand-img-1{
  transform: perspective(1000px) rotateX(30deg) skewX(-20deg);
}

.expand:hover .expand-img-2{
  transform: scale(1.3);
}
</style>

遇到问题可以看我主页加我,很少看博客,对你有帮助别忘记点赞收藏。

相关推荐
IT_陈寒19 分钟前
Redis大key删除为什么会导致服务卡顿?我的线上事故复盘
前端·人工智能·后端
用户2705077725241 小时前
MCP 最小 Server 实测:3 个 JSON-RPC 报错与修法
前端
用户499335025071 小时前
一人VIP账号多人共用:Web 代理里的会话共享怎么实现
前端
用户老李1 小时前
无线电自学教程 05:第一台收音机——从矿石机到 SDR
前端
IPIPD1 小时前
Node.js请求遇到503怎么重试?先解析Retry-After,再做有上限退避
前端
葡萄城技术团队1 小时前
dsh-spreadjs-editor 的集成链路:把 SpreadJS Designer 嵌进 Agent 工作台
前端
AGI_Eval2 小时前
AI 3D生成技术:从“可用”走向“可靠”还有多远?
人工智能·3d
FlyWIHTSKY2 小时前
vue2和vue3有什么区别,用法上有哪些区别
前端·javascript·vue.js
码云之上2 小时前
10 颗一模一样的「Edit」:中后台 Web Agent 怎么找到对的那一行
前端·人工智能·浏览器
量化分析码农3 小时前
【Python量化多因子实战 04】因子暴露不是 alpha:市值与行业中性化实战
前端·后端