current position:Home>CSS is a box that has been climbing
CSS is a box that has been climbing
2022-04-29 09:48:19【G018_ star sky*】
HTML:
<div id="loader">
<div id="box"></div>
<div id="hill"></div>
</div>
CSS:
html, body {
background-color: #404456;
}
#loader {
position: absolute;
top: 50%;
left: 50%;
margin-top: -2.7em;
margin-left: -2.7em;
width: 5.4em;
height: 5.4em;
background-color: #404456;
}
#hill {
position: absolute;
width: 7.1em;
height: 7.1em;
top: 1.7em;
left: 1.7em;
background-color: transparent;
border-left: .25em solid whitesmoke;
transform: rotate(45deg);
}
#hill:after {
content: '';
position: absolute;
width: 7.1em;
height: 7.1em;
left: 0;
background-color: #404456;
}
#box {
position: absolute;
left: 0;
bottom: -.1em;
width: 1em;
height: 1em;
background-color: transparent;
border: .25em solid whitesmoke;
border-radius: 15%;
transform: translate(0, -1em) rotate(-45deg);
animation: push 2.5s cubic-bezier(.79, 0, .47, .97) infinite;
}
@keyframes push {
0% {
transform: translate(0, -1em) rotate(-45deg);
}
5% {
transform: translate(0, -1em) rotate(-50deg);
}
20% {
transform: translate(1em, -2em) rotate(47deg);
}
25% {
transform: translate(1em, -2em) rotate(45deg);
}
30% {
transform: translate(1em, -2em) rotate(40deg);
}
45% {
transform: translate(2em, -3em) rotate(137deg);
}
50% {
transform: translate(2em, -3em) rotate(135deg);
}
55% {
transform: translate(2em, -3em) rotate(130deg);
}
70% {
transform: translate(3em, -4em) rotate(217deg);
}
75% {
transform: translate(3em, -4em) rotate(220deg);
}
100% {
transform: translate(0, -1em) rotate(-225deg);
}
}
copyright notice
author[G018_ star sky*],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/119/202204290711003969.html
The sidebar is recommended
guess what you like
Ajax learning notes
Relearn react (1) - recognize the life cycle
Small problems encountered by react usereducer and Solutions
CSS realizes the square of adaptive screen width
Nginx + ModSecurity setup
Bootstrap web job
bootstrap
Swoft 2. X Foundation (HTTP, database, redis)
Docker actual combat case 2: nginx load balancing
Vue basic syntax
Random recommended
- Go basic syntax 3 (socket, httpserver)
- Nginx configures HTTPS and calls http
- Nginx parsing vulnerability
- How can the backend package Vue projects quickly
- Netty configures WSS protocol access through nginx (Practical)
- Total permutation problem_ Not containing the same element and containing the same element_ Leetcode46_ Leetcode47_ Backtracking solution + java code
- How to upload and download files using Axios in nodejs
- Vue excel file upload
- CondaHTTPError: HTTP 000 CONNECTION FAILED for url < https://conda.anaconda.org/fastai/noarch/repodat
- Multi function environmental monitoring pole scheme based on wireless gateway
- JPS in Hadoop, but http://hadoop01:50070/ How to solve the problem if there is no interface? 500ha70 cluster can't be accessed?
- Tool class for obtaining specific information in HTTP request
- UAV project tracking record 65 - wireless transceiver module circuit
- UAV project tracking record 76 - wireless transceiver module circuit
- Basic concept of angular velocity
- Front end login password encryption and decryption
- Vue parent-child component mutual transmission and intermodulation
- Vue nested loop array, select one of them and add the selected style
- The Vue seamless scroll list scrolls automatically
- Vue line graph moves dynamically to the right
- Install and configure nginx in Linux Environment
- Vue dynamically binds attributes and dynamically obtains attribute values
- Summary method of Vue value in key pair mapping
- Vue simply realizes the addition, deletion and modification of each tab page without route jump
- Vue time control common processing
- Vue validation array
- Simple and easy to let you know what AJAX is, even if you are a little white, a rookie can understand it!
- Receive the JSON string from the front end, and summarize the methods of parsing and value taking at the back end
- Solution: httpmessagenotreadableexception: JSON parse error: invalid UTF-8
- Vuetify: install vuetify from scratch
- Install CSS from tailwind
- Ubuntu 16 wireless network card model query and driver installation, Lenovo g400 bcm43142 network card WiFi
- Some color knowledge to understand at the front end
- Functional programming of front-end development
- A front-end interview question -- implementing an encapsulated Ajax device (promise version)
- Dynamic components of angular
- Front end written test pit -- JS implicit conversion
- Shallow understanding of HTTP
- React style modification background invalid
- Finding the k-th small element of ordered matrix (dichotomy idea)