dear semicolon team
tonight (it's nearly 5:30am here in germany) I finally found time to dig deeper into this header sticky issue, as the last week I was busy finishing the integration of Canvas into TYPO3.
I have to deeply apologize again and hope you didn't put too much effort in my request, I am very sorry.
finally I got around how you implemented the 'Header Heights' as described in the documentation.
all I did so far fiddeling around was a big mistake and mess on my site and far too complicated.
your implementation is awesome, and finally I understand how '.header-size-custom' commbined with the JS dada-* attributes workz. very neat and sexy implementation !!!
I tested it on static html and it workz like a charm.
what I wanted to achieve is a header that will smoothly transform it's height when scrolling for the header height as well as the logo image. and that I finally understood now.
before going live I will implement that in TYPO3, a.t.m. is still the messy css and html code online, just in case you look at it.
and as we use lazy page loading anyway, the perfect solution.
so no more effort needed on this please, sorry again.
there is two things left.
one is the language switch.
as we are planning to go online first with default language german - the translations for the content in english will not be finished on time - that is a task for next year. and as I understood the smooth movement of the menu depends on the padding of the '.menu-container > .menu-item > .menu-link' I will find a solution to integrate the language switch into the header nav and make it behave same as the menu links and move along with them nicely. so that one is postponed, and maybe we will simply position it elsewhere. we will see.
the second thing is sth. I have still on my list and deals with transparencies.
actually I use to different approches, one for the home-page and one for all other pages.
on homepage the header is initially fully transparent and the when scrolling becomes sticky and semi-trasparent.
on the other pages the header should be from the beginning semi-transparent and when scrolling remain semi transparent, only become smaller in height.
my problem is, that a.t.m. I use this code:
<header id="header" class="transparent-header semi-transparent dark header-size-custom" data-sticky-shrink-offset="0" data-sticky-class="semi-transparent">
the combined classes transparent-header semi-transparent are what I want regarding the overall transparency and color.
but then when scrolling and the sticky header comes into action it is getting slightly darker and less transparent.
so I tried different variations and assigned
transparent-header semi-transparent as well for the :not(.sticky-header) as the .sticky-header
than the other way round just semi-transparent for both ..sticky-header and not(.sticky-header)
neither worked :-(
what I want please is the the transparency/opacity color and factor for both the same
it should look like now where transparent-header semi-transparent are assigned together
I include a screenshots for better understanding.
you can check it out live on this site:
http://gjd.web.my1.cc/news
when scrolling it gets darker and less transparent
would be really great if you could help me out with that.
thx and rgds
guido