Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

fripi

ShockinglyGreen
  • Posts

    75
  • Joined

  • Last visited

About fripi

  • Birthday 03/27/1978

Contact Methods

Profile Information

  • Gender
    Male

Recent Profile Visitors

3,641 profile views
  1. Thanks again, I modified my pen, it works great, I will try later to shorten that code if I understand how
  2. @Cassie is there a way to start from array[0] for each sentence, or must I create a word array for each like that let words1 = gsap.utils.toArray('#txt1 .w') let words2 = gsap.utils.toArray('#txt2 .w') let words3 = gsap.utils.toArray('#txt3 .w') let words4 = gsap.utils.toArray('#txt4 .w') ...
  3. thank you @Cassie that's a discovery for me now i can just update that array to create the needed gradient woooowww
  4. Hi everyone, I'm here again with something that can maybe be done just in js but as I use gsap for my banner animation I thought it could also help me with some "design" problem. I have very strict guidelines to follow : for every sentence in my banner, every 2 words the color must change (yellow > orange > red > orange > yellow > orange...). So I started by just manually put some spans with styles (second text block in my pen) but that makes the code kind of difficult to read and also it messes up the breaklines. As I already use splittext to make it appear line by line I was thinking that maybe i could set a color by breaking the sentences by words, but i'm kind of stuck there in the logic, has anyone an idea ? thank you
  5. again time to update some templates, they already updated to 3.9.1 ! oops wrong subject, it's Sizmek here and I talk about doubleclick, sorry
  6. They really listen and act quickly, I asked for an update 2 days ago and it's done, 3.8.0 time to update your templates 😁 <script src="https://s0.2mdn.net/ads/studio/cached_libs/cssruleplugin_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/draggable_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/easelplugin_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/easepack_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/gsap_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/motionpathplugin_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/pixiplugin_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/scrolltoplugin_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/scrolltrigger_3.8.0_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/textplugin_3.8.0_min.js"></script>
  7. Oh great thanks! Never heard of that keyword, again I learn something very useful ! Now that's exactly what I was trying to do
  8. Hi, I was searching for almost exactly that, but I don't understand why 2 splits ? And also I'm trying to figure out ow to limit the width of the line divs to the content exactly, so I did a fork of your pen : https://codepen.io/fripi/pen/ZEJPPJq And starting from that point I try to have the div (with overflow:hidden;) to stop at the red lines, now they all stop at the blue one. I tried things like like .lineChild{width:auto;} but can't figure out if it is possible... The idea is that de text appears from the bottom or left side and then moves out to the right but disappears directly at the green bars, not further. Have a nice day
  9. Kind of what I did here no ? var adW = 970/2, adH = 600/2, ads = document.getElementsByClassName("stroke"); for (var i = 0; i < ads.length; i++) { var element = ads.item(i); var positionInfo = element.getBoundingClientRect(); var height = positionInfo.height; var width = positionInfo.width; gsap.set(element,{x:adW-width/2, y:adH-height/2}) } must search what getBBox is, thanks
  10. Yes thanks and oops sorry I got a little out of scope here
  11. Thank you @Cassie I indeed added a random stagger, not sure it's all random but it's a start in the effect I was looking for. Regarding the center, nom all rectangles are alignes to top left, I would like to have them all in the center. I just centered them but it's not a very clean code, each position is done one by one by entering fix values, I would like to know if that can be done in a more efficient way
  12. Hi everyone, I'm just starting with svg and am a little lost; I just did those squares you can see in my pen now I have serveral questions: how can I center all those, is there an easy way or must I place them one by one in the global div of 970x600px ? once centered I would like to just trace one, the first, and then morph from one to each other, but did I defined the svg well to do that? or must i do separated svgs? another idea while I learn would be to trace them all like now, but then to illuminate (change the fill alpha in yoyo ?) randomly those rectangles. So yes I know a lot of questions in one time, trying to learn making svg, drawing and morphing 😅 Thanks for your time
  13. fripi

    Tween around circle

    WOW thank you all, I'll study all those codes the coming days, it goes much deeper than what I need but always interesting to learn some tricks
  14. fripi

    Tween around circle

    This is more like it... I found a formula, it's not perfect yet, external circles aren't perfectly aligned to central one also their distance to the center isn't "responsive" https://codepen.io/fripi/pen/NWgpggK
  15. fripi

    Tween around circle

    no I think I don't need a bezier here, I need to place several divs around one central element, but they don't need to turn around, now I'm searchin for the math behind placing elements on a circle, rotation isn't a good option because the content must remain readable and horizontal. The screenshot in my first post shows what I try to do
×