8
I tried to include the Fade function in the following elements, but was unsuccessful. The default that shown on the site is this.
I want to apply this to tag <p>
for when I scroll through them, they increase the source, or give fade-in. But I can’t figure out how it works
HTML
<section data-slide="2" id="acqua">
<h1>Papel Interfolhado<div class="ball"><img class="papel" src="img/papel.png"/></div></h1>
<div id="descricao">
<p>O papel toalha Safira tem qualidade <br/>e maciez comprovada.</p>
<p>O guardanapo de papel Safira <br/>é ultra-absorvente</p>
<p>É macio e foi feito pensando <br/>na consciência ambiental e na <br/>preservação do meio ambiente</p>
</div>
</section>
JS
$(document).ready(function($) {
// build tween
var tween = TweenMax.fromTo("#animate2", 0.5,
{"border-top": "0px solid white"},
{"border-top": "30px solid white", backgroundColor: "blue", scale: 0.7}
);
// build scene
var scene = new ScrollScene({triggerElement: "#trigger2", duration: 300})
.setTween(tween)
.addTo(controller);
// show indicators (requires debug extension)
scene.addIndicators();
});
In its present form, your question is incomprehensible. Try to understand the problem you are wanting to solve and then [Dit]and your question to clarify better what your question is. Help us help you.
– Maniero
I’ll try, and I’ve already deleted the code and I’ve remade it. I’ve never used the stack.. I’m kind of lost here..
– manzetti.denis
put your tbm code in jsfiddle.net
– Tafarel Chicotti
http://jsfiddle.net/zZEVJ/ I want to make the letters appear one after the other as I scroll on the page.. to learning jquery, and only find tutorials in English, to with a nervous difficulty, I just paid for an English course, hahahaha da não da mais !
– manzetti.denis
Hi, Dan, welcome to [en.so]. Please, [Edit]and your question whenever you have new information to add, and try to do it in Portuguese because otherwise you have to see an editor and fix it. Maybe I didn’t do the Tour still, it’s easy and explains why the SOPT is different, if you can also take advantage and check out the mini-guide [Ask]. Good luck!
– brasofilo