Giter Site home page Giter Site logo

Fixed header with panels plugin about skel HOT 8 CLOSED

ajlkn avatar ajlkn commented on June 16, 2024
Fixed header with panels plugin

from skel.

Comments (8)

ajlkn avatar ajlkn commented on June 16, 2024

Add the class "skel-panels-fixed" to your element. Should do the trick.

from skel.

cpq avatar cpq commented on June 16, 2024

That actually moves the element to the bottom of the page, cause fixedWrapper follows pageWrapper, and both have position: relative

from skel.

ajlkn avatar ajlkn commented on June 16, 2024

That's a workaround to get fixed elements working on webkit when CSS
transforms are enabled. The parent wrapper is indeed relative, but the
elements inside are set to position: fixed. If they're not, something
else must be going on.

On 12/12/2013 5:39 PM, Sergey Lyubka wrote:

That actually moves the element to the bottom of the page, cause fixedWrapper follows pageWrapper, and both have position: relative


Reply to this email directly or view it on GitHub:
#29 (comment)

from skel.

gilesbutler avatar gilesbutler commented on June 16, 2024

Just to add a note to this as I had the same issue and to make it clear for other people.

You have to add the following styles to the element your trying to position at the top:

position: fixed;
top: 0;

As far as I can see the class 'skel-panels-fixed' doesn't actually apply any fixed positioning to your elements its just a hook for the JS to setup the wrapper for fixed positioning. Please correct if thats wrong @n33

from skel.

ajlkn avatar ajlkn commented on June 16, 2024

Yup, that's correct. The class just tells panels to move it to the fixed
wrapper.

On 1/7/2014 7:58 PM, Giles Butler wrote:

Just to add a note to this as I had the same issue and to make it
clear for other people.

You have to add the following styles to the element your trying to
position at the top: position: fixed; top: 0; As far as I
can see the class 'skel-panels-fixed' doesn't actually apply any
fixed positioning to your elements its just a hook for the JS to
setup the wrapper for fixed positioning. Please correct if thats
wrong @n33

--- Reply to this email directly or view it on GitHub:
#29 (comment)

from skel.

gilesbutler avatar gilesbutler commented on June 16, 2024

Thanks for confirming @n33 . I am experiencing one issue though, so I've created a navbar for a mobile site, the typical sort of one you see on all mobile sites e.g iOS app style header.
I have it set to 100% width and when I activate a side panel it jumps across the page rather than animating with the rest of the content. Is this a webkit issue or is it missing a transition somewhere?

Thanks

from skel.

ajlkn avatar ajlkn commented on June 16, 2024

Hmm. Try recreating it as an overlay (using the panels plugin).

On 1/7/2014 10:17 PM, Giles Butler wrote:

Thanks for confirming @n33 . I am experiencing one issue though, so
I've created a navbar for a mobile site, the typical sort of one you
see on all mobile sites e.g iOS app style header. I have it set to
100% width and when I activate a side panel it jumps across the page
rather than animating with the rest of the content. Is this a webkit
issue or is it missing a transition somewhere?

Thanks

--- Reply to this email directly or view it on GitHub:
#29 (comment)

from skel.

gilesbutler avatar gilesbutler commented on June 16, 2024

That got it. Thanks @n33

from skel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.