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)
5432
default
factor value
on line 78
(the denominator value)
1.251.331.52
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.661.51.331.25
factor value
on line 78
(the denominator value)
2.5345

Calculation is for a wanted shrink-factor:

values

Denominator for line 91 :  f       ⇒    Denominator for line 78   :   f / (f-1)

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)