Jump to content
GreenSock

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

Web Dizajner

Members
  • Content Count

    120
  • Joined

  • Last visited

Community Reputation

63 Contributor

About Web Dizajner

  • Rank
    Advanced Member

Contact Methods

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

3,227 profile views
  1. <script> resizeProject = function () { resized = document.getElementById("myDiv"); widthToHeight = 1 / 2; newWidth = window.innerWidth; newHeight = window.innerHeight; newWidthToHeight = newWidth / newHeight; if (newWidthToHeight > widthToHeight) { newWidth = newHeight * widthToHeight; resized.style.width = newWidth + "px"; resized.style.height = newHeight + "px"; resized.style.maxWidth = resized.css("max-width"); resized.style.maxHeight = resized.css("max-height"); } else { newHeight = newWidth / widthToHeight; resized.style.width = newWidth + "px"; resized.style.height = newHeight + "px"; resized.style.maxWidth = resized.css("max-width"); resized.style.maxHeight = resized.css("max-height"); }} window.addEventListener("load", resizeProject); window.addEventListener("resize", resizeProject); resizeProject(); </script>
  2. https://support.google.com/richmedia/answer/6307288?hl=en only https://s0.2mdn.net/ads/studio/cached_libs/gsap_3.1.0_min.js
  3. Web Dizajner

    GSAP link

    I know, it is not problem for me
  4. Web Dizajner

    GSAP link

    It is not possible to select and copy full link.
  5. Resizing & Positioning imported file? Not possible? Immediately, I closed application 1. How to resize imported file - e.g. I want to resize imported retina double-sized file. 2. How to position imported file - e.g. I want to be exactly top: 23px and left: 69px.
  6. Use animate dom_overlay_container div for TextPlugin, ScrambleTextPlugin, SplitText... example of code in actions var txt1 = document.createElement("p"); var node1 = document.createTextNode("This is the old text"); txt1.appendChild(node1); txt1.setAttribute("id", "p1"); var element = document.getElementById("dom_overlay_container"); element.appendChild(txt1); TweenLite.to("#p1", 2, {text:"This is the new text"});
  7. Just export default template and change few things. In HEAD For both AdWords and DoubleClick add ad.size meta tag: <meta name="ad.size" content="width=$WT,height=$HT"> Clear line for default hosted CreateJS library in default template: $CREATEJS_LIBRARY_SCRIPTS and add Google hosted CreateJS and TweenMax (if you need) libraries: <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2015.11.26_54e1c3722102182bb133912ad4442e19_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/tweenmax_1.18.0_499ba64a23378545748ff12d372e59e9_min.js"></script> You can add viewport meta tag for better preview on mobile: <meta name="viewport" content="width=device-width, initial-scale=1"> For DoubleClick (Do not use for AdWords !!! , AdWords add own ClickTag on upload) add default ClickTag in head: <script>var clickTag = "https://www.example.com"</script> In BODY For DoubleClick (Do not use for AdWords !!! , AdWords add own click event on upload) add click event on top div (<div id="$ANIM_CONTAINER_ID">): onclick="window.open(window.clickTag) For both AdWords and DoubleClick you can change cursor to point with style on top div (<div id="$ANIM_CONTAINER_ID">): cursor:pointer At the end you can clear all comments in template.
  8. AdWords <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>$TITLE</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ad.size" content="width=$WT,height=$HT"> <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2015.11.26_54e1c3722102182bb133912ad4442e19_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/tweenmax_1.18.0_499ba64a23378545748ff12d372e59e9_min.js"></script> $CENTER_STYLE $ANIMATE_CC_SCRIPTS $SCRIPT_START var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation; function init() { canvas = document.getElementById("$CANVAS_ID"); anim_container = document.getElementById("$ANIM_CONTAINER_ID"); dom_overlay_container = document.getElementById("dom_overlay_container"); $CREATE_LOADER $LOAD_MANIFEST $PRELOAD_ASSETS } $HANDLE_FILE_LOAD_START $HANDLE_FILE_LOAD_BODY $HANDLE_FILE_LOAD_END $HANDLE_COMPLETE_START $CREATE_STAGE $START_ANIMATION $RESP_HIDPI $HANDLE_COMPLETE_END $PLAYSOUND $SCRIPT_END </head> <body onload="init();" style="margin:0px;"> <div id="$ANIM_CONTAINER_ID" style="background-color:$BG; width:$WTpx; height:$HTpx; cursor:pointer;"> <canvas id="$CANVAS_ID" width="$WT" height="$HT" style="position: absolute; display: $CANVAS_DISP; background-color:$BG;"></canvas> <div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:$WTpx; height:$HTpx; position: absolute; left: 0px; top: 0px; display: $CANVAS_DISP;"> </div> </div> $PRELOADER_DIV </body> </html>
  9. Don't use outdated templates Use this template for DoubleClick <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>$TITLE</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="ad.size" content="width=$WT,height=$HT"> <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2015.11.26_54e1c3722102182bb133912ad4442e19_min.js"></script> <script src="https://s0.2mdn.net/ads/studio/cached_libs/tweenmax_1.18.0_499ba64a23378545748ff12d372e59e9_min.js"></script> <script>var clickTag = "https://www.example.com"</script> $CENTER_STYLE $ANIMATE_CC_SCRIPTS $SCRIPT_START var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation; function init() { canvas = document.getElementById("$CANVAS_ID"); anim_container = document.getElementById("$ANIM_CONTAINER_ID"); dom_overlay_container = document.getElementById("dom_overlay_container"); $CREATE_LOADER $LOAD_MANIFEST $PRELOAD_ASSETS } $HANDLE_FILE_LOAD_START $HANDLE_FILE_LOAD_BODY $HANDLE_FILE_LOAD_END $HANDLE_COMPLETE_START $CREATE_STAGE $START_ANIMATION $RESP_HIDPI $HANDLE_COMPLETE_END $PLAYSOUND $SCRIPT_END </head> <body onload="init();" style="margin:0px;"> <div id="$ANIM_CONTAINER_ID" onclick="window.open(window.clickTag)" style="background-color:$BG; width:$WTpx; height:$HTpx; cursor:pointer;"> <canvas id="$CANVAS_ID" width="$WT" height="$HT" style="position: absolute; display: $CANVAS_DISP; background-color:$BG;"></canvas> <div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:$WTpx; height:$HTpx; position: absolute; left: 0px; top: 0px; display: $CANVAS_DISP;"> </div> </div> $PRELOADER_DIV </body> </html>
  10. Google-hosted Greensock (files should work regardless of version)
  11. Yes, ExitApi is removed for non-GWD tools. Dont worry for GSAP and CreateJS, there are no change.
  12. L E A N (Light, Encrypted, Ad choice supported, Non-invasive ads) No LEAN = Rise of ad blockers = Web without banners
×