当前位置:网站首页>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;
}
}
边栏推荐
- What are the green field and brown field models in software development - green field development and brown field development
- Map集合详细讲解
- SAP Commerce Cloud Storefront 框架选型:Accelerator 还是 Spartacus?
- Blog theme "text" summer fresh Special Edition
- 深度之眼(三)——矩阵的行列式
- LeetCode:1380. Lucky number in matrix -- simple
- Meanings of SNAT, DNAT and masquerade in iptables
- How to quickly distinguish controlled components from uncontrolled components?
- Leetcode question brushing record | 933_ Recent requests
- vector的底层模拟实现
猜你喜欢

Baobab's gem IPO was terminated: Tang Guangyu once planned to raise 1.8 billion to control 47% of the equity

A case study of college entrance examination prediction based on multivariate time series

Believe in yourself and finish the JVM interview this time

Experience home office, feel the completion of the project | community essay solicitation

例题 非线性整数规划

easyswoole3.2重启不成功

Sword finger offer 22 The penultimate node in the linked list

VirtualLab基础实验教程-7.偏振(2)

The difference of message mechanism between MFC and QT

si446使用记录(二):使用WDS3生成头文件
随机推荐
Use of nexttile function in MATLAB
Sword finger offer 22 The penultimate node in the linked list
详细介绍scrollIntoView()方法属性
A case study of college entrance examination prediction based on multivariate time series
Experience home office, feel the completion of the project | community essay solicitation
Sword finger offer 27 Image of binary tree
简单线性规划问题
常用SQL语句(完整范例)
Séparateur JS3 de niuke
executescalar mysql_ExecuteScalar()
The construction of scalable distributed database cluster and the partition design of oneproxy sub database
easyswoole3.2重启不成功
链表求和[dummy+尾插法+函数处理链表引用常见坑位]
Blog theme "text" summer fresh Special Edition
Flutter: 动作反馈
Use the API port of the bridge of knowledge and action to provide resources for partners to access
Introduce the scrollintoview() method attribute in detail
泡椒凤爪制作教程
Microservice architecture practice: Construction of scalable distributed database cluster
SAP commerce cloud storefront framework selection: accelerator or Spartacus?