gestures.mjs 492 B

123456789101112131415161718192021
  1. import { HoverGesture } from '../../gestures/hover.mjs';
  2. import { FocusGesture } from '../../gestures/focus.mjs';
  3. import { PressGesture } from '../../gestures/press.mjs';
  4. import { InViewFeature } from './viewport/index.mjs';
  5. const gestureAnimations = {
  6. inView: {
  7. Feature: InViewFeature,
  8. },
  9. tap: {
  10. Feature: PressGesture,
  11. },
  12. focus: {
  13. Feature: FocusGesture,
  14. },
  15. hover: {
  16. Feature: HoverGesture,
  17. },
  18. };
  19. export { gestureAnimations };