# All files / components/DragGroups/styles DragItemPreviewContainer.js

0% Statements 0/6
0% Branches 0/4
0% Functions 0/1
0% Lines 0/2

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24

     import styled, { keyframes } from 'styled-components';

    const pickupAnimation = keyframes`
      from {
        transform: translate(-50%, -50%) rotate(0deg);
      }

      to {
        transform: translate(-50%, -50%) rotate(-3deg);
      }
    `;

    export default styled.div`
      animation: ${pickupAnimation} 0.3s;
      animation-fill-mode: forwards;
      display: block;
      pointer-events: none;

      & > * {
        width: 100%;
        height: 100%;
      }
    `;