Skip to content

The -observed class not adding #32

@viterzbayraku

Description

@viterzbayraku

Hello. I installed your plugin from example:

// utilities
const a = require('@viget/tailwindcss-plugins/utilities/alpha')
const { em, rem, remPair, pxPair } = require('@viget/tailwindcss-plugins/utilities/fns')
const plugins = require('@viget/tailwindcss-plugins')
theme: {

        animate: (theme) => ({
            triggerClass: '-observed',
            staggerDelay: {
              '100': '100ms',
              '200': '200ms',
              ...theme('transitionDelay'),
            },
            staggerInterval: {
              default: '100ms',
              '200': '200ms',
              ...theme('transitionDelay'),
            },
            maxItemIntervalSupport: 9,
            animations: {
              'fade-up': {
                from: {
                  transform: 'translateY(20px)',
                  opacity: 0,
                },
                to: {
                  transform: 'translateY(0)',
                  opacity: 1,
                },
              },
              'zoom-in': {
                from: {
                  transform: 'scale(0.8)',
                  opacity: 0,
                },
                // "to" is optional
              },
            },
          }),       
    },
    plugins: [
        plugins.animate,  
        
    ]

npm dev watch generated files without errors, but after scrolling on the page the element still invisible and -observed extension to element class not adding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions