Shrink Factors
all on basis of Enfold 5.4.1
shrink amount is more ( or equal for 2 ) than half size of the starting header height. (e.g. 100px to 40px) | shrink factor value on line 91 (the denominator value) | 5 | 4 | 3 | 2 default |
factor value on line 78 (the denominator value) | 1.25 | 1.33 | 1.5 | 2 default | |
shrink amount is less than half size of the starting header height. (e.g. 100px to 75px) | shrink factor value on line 91 (the denominator value) | 1.66 | 1.5 | 1.33 | 1.25 |
factor value on line 78 (the denominator value) | 2.5 | 3 | 4 | 5 |
Calculation is for a wanted shrink-factor:
so if you like to have a less shrinking amount – you had to choose a value f < 2
so if you like to have a bigger shrinking amount – you had to choose a value f > 2
This is part of actual (enfold 5.4.1)
avia-snippet-sticky-header.js
by the way: nice trick to have shrinking but without a visual effect.
Shrink-Factor ( line 91) : 1.0001
Factor ( line 78 ) : 10000
now there will be no ( visible ) shrink – but the classes were added to use on css ( header-scrolled and header-scrolled-full)