miguel-perez/smoothState.js

height: auto on container

Open

#210 建立於 2015年8月19日

在 GitHub 查看
 (2 留言) (0 反應) (0 負責人)CSS (515 fork)batch import
bughelp wantedunconfirmed

倉庫指標

Star
 (4,433 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Hi There,

Is there anyway to overwrite the height: auto on the main container. I'm using a fullscreen plugin that requires every parent to have a height of 100%;

I've tried adding a class that sets the height but it's inconsistent and flickery as hell on all browsers.

      onStart: {
          duration: 400,
          render: function (url, $container) {
            $('#main').addClass('move-out set-height');

            content.toggleAnimationClass('is-exiting');
            // Scroll user to the top
            $body.animate({
              scrollTop: 0
            });
          }
        },

  onEnd : {
          duration: 0,
          render: function (url, $container, $content) {
           $('#main').removeClass('move-out');
            $body.css('cursor', 'auto');
            $body.find('a').css('cursor', 'auto');
            $container.html($content);

issue

Is there anyway to overwrite this? thanks ^_^

貢獻者指南