Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Commit

Permalink
feat(lsg): add animation to element drag placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
Tilman Frick committed Dec 14, 2017
1 parent 9d9d2b3 commit f72b27c
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/lsg/patterns/element/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,33 @@ const StyledPlaceholder = styled.div`
position: relative;
z-index: 15;
height: 10px;
width: 100%;
margin-top: -5px;
margin-bottom: -5px;
border-radius: 3px;
&::after {
content:'';
display: block;
position: absolute;
height: 100%;
width: 100%;
left: 0;
top: 0;
background: ${colors.grey90.toString()};
transform: scale(1,0);
transition: transform 0.2s;
}
${(props: StyledPlaceholder) =>
props.highlightPlaceholder
? `
background: ${colors.grey90.toString()};
&:after {
transform: scale(1,1);
}
`
: ''};
`;
Expand Down

0 comments on commit f72b27c

Please sign in to comment.