Fix features open and close + rework animation to be more pog
This commit is contained in:
parent
6908ae5bb5
commit
d2f94ef530
@ -73,7 +73,6 @@ const { title, description } = Astro.props;
|
|||||||
|
|
||||||
setInitialHeight() {
|
setInitialHeight() {
|
||||||
requestAnimationFrame(() => {
|
requestAnimationFrame(() => {
|
||||||
console.log(this.padding);
|
|
||||||
this.style.height = this.top.clientHeight + this.padding + "px"
|
this.style.height = this.top.clientHeight + this.padding + "px"
|
||||||
this.bottom.style.top = this.top.clientHeight + this.topPadding + "px";
|
this.bottom.style.top = this.top.clientHeight + this.topPadding + "px";
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user