Jump to content
GreenSock

martis last won the day on July 28 2012

martis had the most liked content!

martis

ShockinglyGreen
  • Posts

    212
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by martis

  1. I found a fix... It was to add padding-right and negative margin-left, then move the whole thing margin-left
  2. Hey guys, I noticed in Safari that SplitText will clip the right side of some italic characters... Does anyone have a suggestion around this? Besides manually setting the width wider so it does not clip? Thanks, James
  3. Hey guys, Seems like a simple thing, but I'm not sure if it exists... Is there an onComplete that fires when ALL the tweens in a stagger have completed? Thanks
  4. Hey thanks Dipscom... I really like all the parameters you can pass it. Thanks!
  5. Hey guys, Found this post that had a great method for polite loading *scripts* in GDC... http://greensock.com/forums/topic/12147-polite-loading-gsap-into-a-dc-html5-banner/?hl=polite+loading#entry50072 I know this isn't GSAP specific (but lots of smart people on here)... Was wondering if anyone had a simple example showing polite loading *image assets* into the banner. Note: This is for straight up HTML/CSS/JS Thanks!
  6. Wanted to ask a technical question of where is the best place to link to GSAP in your HTML? I downloaded the starter HTML5 file for a 300x250 animated banner to do some experimentation on. I guess it makes the most sense to put it here? <!DOCTYPE html> <html lang="en"> <head> <meta data-template-name="Template_H5T_inpage-300x250-image"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <link rel="stylesheet" type="text/css" href="style.css"> <script type="text/javascript" src="https://s0.2mdn.net/ads/studio/Enabler.js"></script> </head> <body> <div id="main-container"> <div id="exit"></div> <div class="feature" id="feature"> <div id="main-img-0"></div> </div> </div> <script type="text/javascript" src="https://s0.2mdn.net/ads/studio/cached_libs/timelinelite_1.18.0_dbe88c20554c170a56f44600f31a97d9_min.js"></script> <script src="logic.js"></script> </body> </html>
  7. martis

    Inspiration Sites

    Hey guys, Outside of the showcase on this site, what are some other sites you guys enjoy visiting to get inspiration from? Thanks!
  8. To be clear... I have MC A, B, C C is inside of B which is inside of A If I do TweenMax.killChildTweensOf(A, true) it should only stop tweens for B, not C? Or will it go down the nested display list and kill B and C? If not, I wrote this little function which seems to work // Loop through and kill tweens of all children private function killChildTweensOf( mc : *) : void{ if(mc is DisplayObjectContainer) { TweenMax.killChildTweensOf(mc, true); for(var i:uint = 0; i < mc.numChildren; i++) { var child : * = mc.getChildAt(i); killChildTweensOf(child); } } }
  9. Hi guys, I have a scenario where I have many MovieClips with many children, that have children, etc... I am looking for a way (most likely a function) that I can pass a MovieClip to and have it killChildTweensOf of all its children, and their children and their children etc.... I know killAll exists, but I have other tweens happening that I want to continue. Has anyone created a function that could loop through a MC and all its children, and their children and killChildTweensOf until there are no more children? Thanks in advance!
  10. Hey guys, Was wondering if anyone has created an example of applying smooth but random movement, scale, and speed to an object. I am trying to create an effect where it feels like balls of light are smoothly moving around the screen to random spots at random speeds in a smooth manner. Thanks!
  11. Hey guys, Not sure if LoaderMax can handle this or not but here is my situation. My main SWF is in the root directory. (Main.swf) I am loading SWFs from root/resources/assets (Loaded.swf) The SWFs that are being loaded are trying to load assets from a relative /resources folder (root/resources/assets/resources) My problem is that when I load the SWFs into the main SWF in the root folder, it now looks at root/resources for those other assets, not root/resources/assets/resources. My ideal solution would be to not have to edit the SWFs that I am loading in as a third party is producing them. Is there anyway to somehow give the SWF context to its root directory when I load it in so it works? EDIT: The experience is running in the standalone player, not the web Found a solution, but it requires me to make edits to the SWFs that are being loaded in: public static function getFullPath($loaderInfo:LoaderInfo):String { var myAbsolutePath:String; var myRelativePath:String; myAbsolutePath:String = $loaderInfo.url; var stringStart:Number = 0; var stringEnd:Number = myAbsolutePath.lastIndexOf("/")+1; myRelativePath = myAbsolutePath.slice(stringStart, stringEnd); return myRelativePath; } Thanks, James
  12. Hello everyone, Wanted to see if anyone had some advice/examples of how to go about doing angled page wipes/transitons? My gut is telling me use an SVG polygon, but wanted to see what others thought. Would love if the solution worked with any window dimensions... Thanks!
  13. This works, thank you Carl!
  14. Is there a way to view a list of topics I am following? Trying to use it as a bookmark of sorts. Thanks!
  15. Perhaps... I think what I am really looking for was a way to avoid the performance hits when tweens in the timeline start. Jack had an example where in one line of code he jumped to the end, then back to the beginning to achieve this.
  16. Hey guys, I remember seeing a lot of posts where you could move the playhead to the end of a timeline then back to the start to "cache" the start values and such. What is the best method to do this again? Thanks, James
  17. Thanks Diaco, this is awesome! Now for the hard question What if I have a tween within a long timeline that I want to change on the fly?
  18. Is there a way to use onUpdate or pass a function to an end value to update the end value of a tween? Thanks!
  19. Rodrigo, Thanks for the detailed reply. I feared it was a browser/cpu issue. I can't wait for the day when performance concerns are a thing of the past! I've really only had success by wrapping everything in a Draggable() object, but this can't always be the method I use... I'll give lagSmoothing() a shot and let you guys know. Thanks!
  20. Hey guys, Wanted to see if anyone out there using scrollmagic experienced some performance issues on mobile devices (iOS) on flick when controlling a timeline using duration. When I drag the page it tracks really well, but when I flick the page I get a lot of stutter and lost frames. Wondering if its scrollmagic or how iOS updates the page on "flick". Has anyone had success with any library doing scroll animations on iOS? Thanks!
  21. martis

    React and GSAP

    Hello everyone, I am about to dive into React JS and wanted to see if people were using GSAP with React JS? I searched the forums but did not find much. I found a gsap react plugin, but wanted to poll the forum. Thanks!
×