当前位置:网站首页>微信小程序 —— 上下浮动的箭头
微信小程序 —— 上下浮动的箭头
2022-07-02 15:02:00 【油条生煎】
wxml
<view class="arrow-up"></view>
<view class="arrow-down"></view>
wxss
.arrow-up {
width: 25rpx;
height: 25rpx;
border-top: 6rpx solid white;
border-right: 6rpx solid white;
margin-left: 50%;
transform: translateX(-50%) rotate(-45deg);
animation: arrow-up-animation 3s infinite;
position: absolute;
}
@keyframes arrow-up-animation {
0% {
top: 11vh;
}
50% {
top: 8vh;
}
100% {
top: 11vh;
}
}
.arrow-down {
width: 25rpx;
height: 25rpx;
border-top: 6rpx solid white;
border-right: 6rpx solid white;
margin-left: 50%;
transform: translateX(-50%) rotate(135deg);
animation: arrow-down-animation 3s infinite;
position: absolute;
}
@keyframes arrow-down-animation {
0% {
bottom: 8vh;
}
50% {
bottom: 11vh;
}
100% {
bottom: 8vh;
}
}
边栏推荐
- 体验居家办公完成项目有感 | 社区征文
- 将您的基于 Accelerator 的 SAP Commerce Cloud Storefront 迁移到 Spartacus
- 相信自己,这次一把搞定JVM面试
- uniapp H5页面调用微信支付
- 畅玩集团冲刺港股:年营收2.89亿 刘辉有53.46%投票权
- Exploration of mobile application performance tools
- OpenHarmony如何启动FA(本地和远程)
- [web technology] 1233 seconds understand web component
- Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
- ThreadLocal
猜你喜欢
Qwebengineview crash and alternatives
After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning
QStyle实现自绘界面项目实战(二)
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
【Leetcode】14. Longest Common Prefix
LeetCode:1380. Lucky number in matrix -- simple
Soul, a social meta universe platform, rushed to Hong Kong stocks: Tencent is a shareholder with an annual revenue of 1.28 billion
Win10 system uses pip to install juypter notebook process record (installed on a disk other than the system disk)
相信自己,这次一把搞定JVM面试
The computer comes with software to make the background color of the picture transparent (matting white background)
随机推荐
Jiuxian's IPO was terminated: Sequoia and Dongfang Fuhai were shareholders who had planned to raise 1billion yuan
详细介绍scrollIntoView()方法属性
871. Minimum refueling times
2322. Remove the minimum fraction of edges from the tree (XOR and & Simulation)
Helm kubernetes package management tool
GeoServer:发布PostGIS数据源
Interpretation of key parameters in MOSFET device manual
The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
Configure lamp+supervisor
JS delete substring in string
如何与博格华纳BorgWarner通过EDI传输业务数据?
Séparateur JS3 de niuke
LSF basic command
After meeting a full stack developer from Tencent, I saw what it means to be proficient in MySQL tuning
关于我
求简单微分方程
剑指 Offer 25. 合并两个排序的链表
剑指 Offer 24. 反转链表
Qstype implementation of self drawing interface project practice (II)
Meanings of SNAT, DNAT and masquerade in iptables