Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "frontend-packages/react-cookie-banner/src/hooks/banner/useBannerAnimation"

Index

Functions

Functions

useBannerAnimation

  • useBannerAnimation(): (Anonymous function)
  • Depending on the current screen, calculate the animation to use.

    Currently, we do not support animations on resize as we cannot calculate the width of the overlay container as it does not exist on first render cycle of React.

    Drawback if animation only on mobile is enabled: if the window is first a mobile, and the window gets resize it will reuse the animation on desktop again

    Returns (Anonymous function)

Generated using TypeDoc