Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The -observed class not adding #32

Open
viterzbayraku opened this issue Oct 2, 2022 · 0 comments
Open

The -observed class not adding #32

viterzbayraku opened this issue Oct 2, 2022 · 0 comments

Comments

@viterzbayraku
Copy link

viterzbayraku commented Oct 2, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant