Share Posted June 4, 2016 Ok I have edited this post because since I started I have started to make things work with my own persistence. I have implemented this effect into a banner. See the Pen wBGvgW by MAW (@MAW) on CodePen Can someone tell me what to add to make it stop after a certain time for example 10 seconds? It seems to have a timeline of its own which I cannot control with the pause function. Also I don't seem to be able to put it on a specific level.. it is always on the top of everything. Many thanks. Link to post Share on other sites
Share Posted June 10, 2016 Hi Buster, The repeat is on -1 which will repeat infinitely, so if you change that to something like 5, for example, it should only repeat 5x. TweenMax.to(elm,R(0,5)+3,{y:h,ease:Linear.easeNone,repeat:5, delay:-5}); To set this on it's own layer, you should wrap it in it's own <div> and then set the position to absolute and the z-index to whatever you'd like, and that should give you the control to place this on whatever layer you'd like. 1 Link to post Share on other sites
Share Posted August 29, 2018 Ok... Did you managed to get this to work in a banner? I have been making banners for a year now using Animate CC only and I am so struggling with getting Particles into a banner while keeping the whole ting under 150kbs :( Link to post Share on other sites
Share Posted August 30, 2018 The reason the particles are at the top level right now is because of the z-index:2; in the css for the "dot". Removing that (or giving the image a higher z index) will send the dots behind the image. 1 Link to post Share on other sites
Share Posted September 2, 2018 Hi @Buster, To start and stop an emitter @OSUblake gave an example: thread See the Pen mGEOop by osublake (@osublake) on CodePen Happy tweening ... Mikel 5 Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now