Skip to content

Commit

Permalink
style: add animation to the lookup component (#1767)
Browse files Browse the repository at this point in the history
* style: add animation to the lookup component

* fix: indentation

Co-authored-by: TahimiLeonBravo <tahimi@nexxtway.com>
Co-authored-by: Tahimi <tahimileon@gmail.com>
  • Loading branch information
3 people committed Jul 29, 2020
1 parent dfa40a6 commit 452cc53
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/Lookup/styled/optionsMenu.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
import styled from 'styled-components';
import styled, { keyframes } from 'styled-components';
import attachThemeAttrs from '../../../styles/helpers/attachThemeAttrs';

const ListOptionsMenu = keyframes`
0% {
opacity: 0;
}
100% {
opacity: 1;
}
`;

const StyledOptionsMenu = attachThemeAttrs(styled.div)`
position: absolute;
width: 100%;
Expand All @@ -11,7 +21,8 @@ const StyledOptionsMenu = attachThemeAttrs(styled.div)`
overflow: hidden;
margin-top: 0.2rem;
z-index: 2000;
transition: all 0.1s linear;
animation: ${ListOptionsMenu};
animation-duration: 0.3s
padding: 1.15rem 0;
`;

Expand Down

0 comments on commit 452cc53

Please sign in to comment.