调整loding动画细节
This commit is contained in:
@@ -68,7 +68,7 @@ const setTl1 = ()=>{
|
||||
nextTick(()=>{
|
||||
let el = dotBox.value
|
||||
let width = el.offsetWidth + el.parentElement.offsetWidth
|
||||
let time = el.parentElement.offsetWidth / 35
|
||||
let time = el.parentElement.offsetWidth / el.offsetWidth / 2
|
||||
console.log(time,width)
|
||||
tl1 = gsap.timeline();
|
||||
tl1.to(el,time,
|
||||
@@ -136,7 +136,7 @@ onMounted(() => {
|
||||
|
||||
.loading-dot{
|
||||
height: 100%;
|
||||
aspect-ratio: 1/1;
|
||||
aspect-ratio: 1.2/1;
|
||||
background: radial-gradient(ellipse 150% 150% at center, #ffffff,rgba(255,255,255,.4), transparent);
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
|
||||
Reference in New Issue
Block a user