当前位置:网站首页>Wechat applet - arrows floating up and down
Wechat applet - arrows floating up and down
2022-07-02 17:35:00 【Fried dough sticks】
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;
}
}
边栏推荐
- Eye of depth (II) -- matrix and its basic operations
- 智能垃圾桶(五)——点亮OLED
- 简单线性规划问题
- Sword finger offer 25 Merge two sorted linked lists
- Smart trash can (V) - light up OLED
- Common SQL statements (complete example)
- Uniapp H5 page calls wechat payment
- Helm kubernetes package management tool
- Eye of depth (III) -- determinant of matrix
- Visibilitychange – refresh the page data when the specified tab is visible
猜你喜欢
MATLAB中nexttile函数使用
The bottom simulation implementation of vector
Goodbye, shucang. Alibaba's data Lake construction strategy is really awesome!
Sword finger offer 22 The penultimate node in the linked list
Microservice architecture practice: Construction of scalable distributed database cluster
This "architect growth note" made 300 people successfully change jobs and enter the big factory, with an annual salary of 50W
Timing / counter of 32 and 51 single chip microcomputer
从收集到输出:盘点那些强大的知识管理工具——优秀笔记软件盘点(四)
ThreadLocal
例题 非线性整数规划
随机推荐
si446使用记录(一):基本资料获取
AtCoder Beginner Contest 237 VP补题
uva1169
LeetCode:1380. Lucky number in matrix -- simple
ROS知识点——消息过滤器 ( message_filters)
Platform management background and business menu resource management: business permissions and menu resource management design
Smart trash can (V) - light up OLED
Séparateur JS3 de niuke
Dstat use [easy to understand]
ssb门限_SSB调制「建议收藏」
Win10 system uses pip to install juypter notebook process record (installed on a disk other than the system disk)
[非线性控制理论]7_High gain and High Frequency
牛客 JS3 分隔符
Chrome browser quick access stackoverflow
2020 "Lenovo Cup" National College programming online Invitational Competition and the third Shanghai University of technology programming competition (a sign in, B sign in, C sign in, D thinking +mst
链表求和[dummy+尾插法+函数处理链表引用常见坑位]
13、Darknet YOLO3
si446使用记录(二):使用WDS3生成头文件
Chapter 3 of hands on deep learning - (1) linear regression is realized from scratch_ Learning thinking and exercise answers
How to quickly distinguish controlled components from uncontrolled components?