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

Class binding not working with CSS Modules #6

Open
shawnolson-fp opened this issue Dec 11, 2018 · 1 comment
Open

Class binding not working with CSS Modules #6

shawnolson-fp opened this issue Dec 11, 2018 · 1 comment

Comments

@shawnolson-fp
Copy link

I have a div styled as such using CSS modules syntax ...

<div :class="$style.containerCTA" v-in-viewport></div>

Style looks like this ...

<style lang="stylus" scoped module>
.containerCTA {
    display: flex;
    align-items: center;
    max-width: 114rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translate3d(0, 5px, 0);
    transition: opacity 0.2s, transform 0.3s;

    &.in-viewport {
      opacity: 1;
      transform: none;
    }
  }
  </style>

screen shot 2018-12-11 at 6 46 56 am

But it never actually does anything because the class isn't native... any suggestions?

@weotch
Copy link
Member

weotch commented Dec 11, 2018

Sorry, not really. We don't use css modules so I haven't run up against this.

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

2 participants