Skip to content

Commit

Permalink
fix: missing animation
Browse files Browse the repository at this point in the history
  • Loading branch information
afeiship committed Feb 14, 2021
1 parent 33a71ae commit b17cef1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions build/TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,31 @@ __GENERATE_DOCS__
__GENERATE_DAPP__
```

## animation
```css
/* remove arrow */
&::-webkit-details-marker {
// display: none;
}


/* add animation */
&[open] summary ~ * {
animation: open 0.5s ease-in-out;
}

@keyframes open {
0% {
opacity: 0;
margin-left: -5px;
}
100% {
opacity: 1;
margin-left: 0px;
}
}
```

## documentation
- https://afeiship.github.io/react-details/

Expand Down

0 comments on commit b17cef1

Please sign in to comment.