Coder Social home page Coder Social logo

Sticky Header about ionic-super-tabs HOT 6 OPEN

zyra avatar zyra commented on July 23, 2024 1
Sticky Header

from ionic-super-tabs.

Comments (6)

benharpers avatar benharpers commented on July 23, 2024

One problem with the attribute directive method is that you would have to add it to every ion-header in the whole app, which wouldn't be hard but it's not ideal. On the plus side, you could add it to any element you wanted this fade effect on.

Another method would be to only slide the ion-content block instead of the whole nav page and have everything else at the top level of the page's dom, like ion-header and ion-footer or anything else, do an opacity transition. I know you currently use a div that is super wide to hold all the pages so it would require some re-working of that.

Ionic already does this effect pretty well with the back swipe from one page to another, perhaps that should be how it works for tabs too.

from ionic-super-tabs.

ihadeed avatar ihadeed commented on July 23, 2024

Good ideas.

When I designed this module, my intention was to use it as demonstrated in many Google apps and the Material guidelines here: https://material.io/guidelines/components/tabs.html#tabs-types-of-tabs

As you can see in the guidelines and in some apps, swipeable tabs only change the content of the page, not the header. The page title stays the same across all the tabs since all the tabs belong to the same page/category/...etc.

The ideas you mentioned are worth investigating, it's nice to cover more use cases. Ionic Framework's iOS header animation is possible, but that means there will be more things animating as you swipe through the tabs.

I already find the current animations slow in this module. So, until I figure out a way to increase their performance, I think it's better to not add more animations.

from ionic-super-tabs.

benharpers avatar benharpers commented on July 23, 2024

Thanks. I can make it work as is for now, or maybe move some of the icons down into the page and move the header up out of the tabs.

from ionic-super-tabs.

kodeine avatar kodeine commented on July 23, 2024

would be very useful. also how to make the tabs below the header? like shown in the material design specs?

from ionic-super-tabs.

kodeine avatar kodeine commented on July 23, 2024

@ihadeed any idea when this is coming?

from ionic-super-tabs.

damonsomu avatar damonsomu commented on July 23, 2024

Indeed a great plugin and saves a lot of time.

Is it possible to achieve like this?? Check here in scrolling section-> https://material.io/design/components/tabs.html#behavior

You may check while scrolling the content only the HEADER hides and the TABS sticks to the top. Is it possible to achieve the same?? I also tried to use a directive header scroller but not working in super-tabs page.
The code I brought from the below link
ionic-team/ionic-framework#1381 (comment)

from ionic-super-tabs.

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.