Improve animations
This commit is contained in:
parent
4ab6a5c5b0
commit
735ac25c98
3 changed files with 5 additions and 4 deletions
|
|
@ -35,7 +35,7 @@ export const generate = (
|
|||
${
|
||||
more &&
|
||||
`<div tabindex=0 class="info-button">
|
||||
<div class="svgContainer">${info}</div>
|
||||
<div class="svg-container">${info}</div>
|
||||
<p>${showMore}</p>
|
||||
</div>`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@
|
|||
overflow: hidden;
|
||||
margin: 0;
|
||||
height: 0;
|
||||
transition: height var(--transition-time);
|
||||
transition: height var(--transition-time-long);
|
||||
|
||||
> p {
|
||||
margin-top: var(--line-height);
|
||||
|
|
@ -162,14 +162,14 @@
|
|||
@include image-button(var(--icon-size));
|
||||
@include main-font();
|
||||
|
||||
.svgContainer {
|
||||
.svg-container {
|
||||
position: relative;
|
||||
margin: auto;
|
||||
@include square(var(--icon-size));
|
||||
|
||||
svg {
|
||||
stroke: var(--normal-text-color);
|
||||
transition: stroke var(--transition-time);
|
||||
transition: stroke var(--transition-time), transform var(--transition-time);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
:root {
|
||||
--transition-time: 150ms;
|
||||
--transition-time-long: 300ms;
|
||||
--line-width: 3px;
|
||||
--line-height: 18px;
|
||||
--accent-color: #b7455e;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue