Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS ignore css animation on unsupported browser no matter if js is on or off

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #168322
    rpk
    Participant

    Is there a way to prevent an element to run a css animation no matter if js is active or not. The js is active part is basically already covered by modernizer in my case:

    .fp-bb {
        .cssanimationsjs &:hover {
            @include animation('box-up 1s');
            height:100%;
            overflow:hidden;
        }   
        .cssanimationsjs &:hover .fp-pro-excerpt {
            display:block;
        }   
        .fp-pro-excerpt {
            display:none;
        }
    }
    

    only problem this covers only the case if js is active if it is inactive in both cases, for the supported browser as well as the unsupported browser, no animation is run cuz the .cssanimationsjs class is missing for no-js.

    But would there be an elegant solution to manage that on supported browsers the css animation is run no matter if js is active or not and for unsupported browser don’t run any animation at all no matter if js is active or not. Best regards Ralf

Viewing 1 post (of 1 total)
  • The forum ‘CSS’ is closed to new topics and replies.