Home › Forums › CSS › div join after touching the other one? › Re: div join after touching the other one?
July 10, 2012 at 3:04 pm
#105832
Participant
sorry to trouble you, another question I still can’t figure out besides of the top one,
if I want to add another bar below bar 2, i will have to add another fixer as
.bar3.fixer {
position:fixed;
top:90px;
}
and then what should I edit in the js function part ? should i add something like this ?
$('.bar2, .bar3').waypoint(function(e,d){
if (d == 'down')
$(this).addClass('fixer');
else
$(this).removeClass('fixer');
});
$('.bar3').waypoint({
offset: 90
i couldn’t test this because i haven’t fixed the first issue yet ( my page with your 2 bar script is not even working yet) =(