vertigo_forms/spinner.rs
1use vertigo::{component, css, dom};
2
3#[component]
4pub fn Spinner() {
5 dom! { <div css={css! {"
6 width: 40px;
7 height: 40px;
8 margin: 100px auto;
9 background-color: #d26913;
10
11 border-radius: 100%;
12 animation: 1.0s infinite ease-in-out {
13 0% {
14 -webkit-transform: scale(0);
15 transform: scale(0);
16 } 100% {
17 -webkit-transform: scale(1.0);
18 transform: scale(1.0);
19 opacity: 0;
20 }
21 };
22 "}} /> }
23}