From animated only when scrolling until container

There is a good article about it. http://www.raymondcamden.com/2013/12/6/Delaying-an-Edge-Animate-asset-until-visible--Part-4.

// insert code to be run when the symbol is created here
var wasHidden = true;

    //http://stackoverflow.com/a/488073/52160
    function isScrolledIntoView(elem) {
        var docViewTop = $(window.parent).scrollTop();
        var docViewBottom = docViewTop + $(window.parent).height();

        var elemTop = $(elem).offset().top;
        var elemBottom = elemTop + $(elem).height();

        return ((elemBottom >= docViewTop) && (elemTop <= docViewBottom)
          && (elemBottom <= docViewBottom) &&  (elemTop >= docViewTop) );
    }          

    var element = sym.element;
    element = $("#graphics", window.parent.document);

    if(isScrolledIntoView(element)) {
        console.log('on load vis');
        wasHidden=false;
        sym.play();
    }

    function doStart() {
        if(isScrolledIntoView(element)) {
            if(wasHidden) {
                console.log('Start me up ID5');    
                sym.play();
            }
            wasHidden = false;
        } else {
            sym.stop();
            wasHidden = true;
        }

    }

    $(window.parent).on("scroll", doStart);

But the problem is that this code does not work with edge animate CC 2014.

Are there ideas how to adapt the code for version the most recent Dashboard animate?

Thank you.

Hi HayPro,

Load you jQuery. You choose: CDN option or a folder that contains the file jQuery.

This photo shows a CDN choice.

Tags: Edge Animate

Similar Questions

  • Allowing a button only when a tilelist contains elements

    In my application, I have a button that pours a tilelist however I want to only be "activated" when this tilelist contains actually the points and off when it doesn't.

    Should what code I apply to the next enabled property of the button to make it only be activated when a component tilelist (simply called tilelist1 in this example) contains at least 1 item? :-

    enabled = "{tilelist1.}".

    enabled = "{tilelist1.rowCount > 0}.

  • Disappears from the vertical when scroll bar change the zoom level

    This happens on my site (http://www.gotravelshack.com/)and that in FireFox (not other browsers).

    Must refresh the page to get back scroll bar.

    Help, please.

    Thank you.

    I don't see that happen in Firefox Linux 33.1.1on.

    Y at - it a special script running on the page that takes care of automatically resize the elements?
    (I see evidence of this)

    You can try to disable OMTC (active leave hardware acceleration in Firefox).

    • topic: config page: layers.offmainthreadcomposition.enabled = false

    You can open the topic: config page via the address bar.
    You can accept the warning and click on "I'll be careful" to continue.

    You can reload the web page and bypass the cache to refresh possibly obsolete or damaged files.

    • Hold down the SHIFT key and click the Reload button
    • Press 'Ctrl + F5' or 'Ctrl + Shift + R' (Windows, Linux)
    • Press 'Command + shift + R' (Mac)

    Clear the cache and delete cookies only from Web sites that cause problems.

    "Clear the Cache":

    • Firefox/tools > Options > advanced > network > content caching Web: 'clear now '.

    'Delete Cookies' sites causing problems:

    • Firefox/tools > Options > privacy > "Use the custom settings for history" > Cookies: "show the Cookies".
  • Office jet pro 8600 how default to black ink only when printing from my ipad

    Is it possible to set an option to print the black ink only when printing from my Ipad 2?
    When I use the print icon the only option that shows is double page. I would like to be able to print in black only.
    I can set this option when you print from my pc...

    Hello

    AirPrint does not support black ink only printing, however the HP ePrint app allows it.

    Note that the option is available only for documents (for example Office, PDF, Web pages and emails files), but not for the Photo files.

    You can find the steps to obtain and use the application in the document below:

    http://support.HP.com/us-en/document/c01616126

  • 6525 HP trying to print photos only from photo tray when I print from iPhone

    6525 HP trying to print photos only from photo tray when I feel of the iPhone. A4 paper loaded, but 6525 does not print on it and output the message "Insert photo paper." Can you help me?

    Hello

    The default settings on the devices Apple Airprint is printing photos from the photo tray and all other documents of the main paper tray.

    For more flexibility with regard to the selection of media and the status bar, please download the HP e-Pprint app. You will find the Setup instructions for e-Print here.

  • Add MenuItem to the mapping of Blackberry, only when it is called from my application

    Hi all

    I develop a Blackberry application that calls the Blackberry plan using the api to Invoke.

    I need to add the menu item to this map of blackberry only when it is called from my application (means, blackberry card should not have any other newly added menuItem when it is called directly as a standalone application).

    Is this possible? If so, how is it possibe?

    Help, please.

    I guess you can try:

    1. Add the menu item

    2 call

    3. remove the menu call back form element

  • Page scrolling works only when I click on the page. Was I forgetting something?

    I'm almost ready to create my first site, but when I saw of any page it scrolls through only when I click on the page or the scroll bar. Not neglected a setting for this?

    Hi Johannes,

    Please refer to: Parallax scrolling in Adobe Muse CC Web sites | Adobe inspire Magazine

    Kind regards

    Akshay

  • Get an Animation starts when you scroll to it on the page.

    Hi all

    I made an animation on board, then I added in my Muse site. Is - it there anyway I can make the animation starts when I highlight it in the page.

    Congratulations to all.

    http://www.raymondcamden.com/index.cfm/2013/7/11/delaying-an-edge-animate-asset-until-Visi wheat - part-2

    I saw a good article about it here.

  • Fuzzy letters on websites when scrolling in Firefox 19 (with either smooth scrolling active / disabled)

    Hello

    Recently, I updated to Firefox 19, and since I had some problems when scrolling on Web sites: some lines/letters fade.
    I did some research online and found a trick to disable smooth scrolling, so I only have restarted Firefox, but the issue is still not resolved.
    I have not had this problem until the recent upgrade.
    Is this a known issue? Is there a solution to this?
    If no, how are we going to go back to the previous version of Firefox, I can only find the download links to the latest version...

    Thank you
    Lars

    Hello Santuzzo, try turning off hardware acceleration and check again.

    Thank you

  • Satellite M50 - charges the battery only when stopped

    My Satellite M50 battery only when stopped. Does this mean that when I work I'm still running on batteries, which of course carry out completely after 1 to 2 hours. Then I shut down the computer and it started charging again (orange led), and after a few hours, I still have a 100% charged battery.

    Of course, this means that the computer is not available. Until a few weeks ago it used to have the same problem if I disconnected the power plug then reconnected it: the battery needed to dump then to 0%, even if the power is connected, but now the problem is constant.

    I've updated to the latest version of the BIOS, I could find and even completely reinstall windows from the recovery disks, but the problem is still there. The computer is a Toshiba Satellite M50 - 126 model PSM51E, the BIOS is Phoenix BIOS v2.10

    Is it possible that the BIOS is damaged of some sort? I tried to reinstall V2.10 but he told me that I have the same version and it will not be installed.

    Hi lartech,.

    You can recharge the battery if you get into the BIOS and made the battery charging icon light?
    Are you using the original Toshiba AC/DC adapter and battery?

    In the worst case, it s a malfunction of the motherboard, and you have done what you can do: BIOS update and to install Windows from the recovery disc. If this doesn't help s a bad hardware work.

  • Why my custom device break only when VeriStand trying to run it?

    Hello

    I have a custom device, he worked for some time now, today, I made a few changes to add some features more and now VeriStand tells me the RT pilot is more executable.

    I have not change my build configuration or add any functionas that could bring in an external DLL, or something that could link incorrectly.

    Any ideas of how I could go on this shrinking.  The problem is that when running in VeriStand.  Built LLB has no problem, the source of the development has no problem, it's only when VeriStand tries to deploy there is a problem, so there must be something that is not bound correctly Yes?

    The system isn't RT, it's just deploy on Windows using a SMU.

    I am not sure the exact cause, but I ended up simply remove parts of the code piece by piece pilot to refine what was causing the problem. It turned to be a VI of debugging I used several times before in various projects, but which contains the string "call" LabVIEW primitive, but set apart from that, it's just a simple string manipulation.  So I don't know if it was just a few cases of random edge that occurred when running under code basic LabVIEW VeriStand clean, but for some reason, he broke the driver VI.

    So, solved the problem, but the cause, I can't really say.

  • How can I disable the mini-bar of scrolling that appears randomly when scrolling?

    ProBook 4310 s, Windows 7

    When scrolling, a small scrollbox appears randomly and that he's taking me away from the page I'm scrolling on.  This happens when I use the small plate square to scroll.  It's the only 'function' most irritating of any computer I have ever owned or used, and I wish I could turn it off.  How to do that please?

    Hi Taxlady:

    I found the solution myself.  You have to start HP Support Assistant and choose the resolution of problems (the second of the four options, my copy is in Swedish so it may not be called Problem Solving but something similar).  Then choose the devices, one on the middle of the bottom row and the following Configuration for mouse and .  Here, you will get a new window with a menu five point on the left.  These elements will be something like:

    Overview, scroll, Point, buttons and other things I don't even understand Swedish for!

    Choose scrolling, and down there, you have a finger to scroll.  Disable horizontal and vertical scrolling, and your problems are over.

  • Play OAM only when it is visible

    Hi, is it possible I can do an overlay of folio with single game animation animate edge when people highlight the part

    or only when they get to a certain defined pixel (so it plays when they scroll to the position 2345px for example)

    Thank you

    Automatic execution of the superposition of the 0.125 seconds web time-out.

    Neil

  • Weird behavior of Firefox in Facebook when scrolling down

    Hello

    My Firefox has a weird behavior when I open Facebook and start to scroll, I have attached two images, first image is when I open facebook, everything is ok (I dimmed the contacts), second image is when I start scrolling down, you will see square masive black with blue navigation. That happens only when firefox is "enlarged" and not with windows. I also try to disable all addons or run firefox in safe mode I have also reinstalled it and the problem is still there. Have any suggestions, which could be bad, also if forgot to tell you that any information not hesitate to ask and I will it provide.

    Hello

    Try Firefox Safe mode to see if the problem goes away. Firefox Safe mode is a troubleshooting mode that temporarily disables hardware acceleration, restores some settings and disables add-ons (extensions and themes).

    If Firefox is open, you can restart Firefox Safe mode in the Help menu:

    • Click the menu button

      click Help

      then select restart with disabled modules.

    If Firefox does not work, you can start Firefox in Mode safe as follows:

    • On Windows: Hold down the SHIFT key when you open the desktop Firefox or shortcut in the start menu.
    • On Mac: Hold the option key during the startup of Firefox.
    • On Linux: Exit Firefox, go to your Terminal and run firefox-safe-mode
      (you may need to specify the installation path of Firefox for example/usr/lib/firefox)

    When the Firefox Safe Mode window appears, select "start mode safe."

    If the problem is not present in Firefox Safe Mode, your problem is probably caused by an extension, theme or hardware acceleration. Please follow the steps described in the section Troubleshooting extensions, themes and problems of hardware acceleration to resolve common Firefox problems to find the cause.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before you open Firefox for normal use again.

    When find you what is causing your problems, please let us know. This might help others with the same problem.

  • How can I import from Outlook 2007 when the option is grayed out?

    I'm moving from Outlook 2007 to Thunderbird. All is well until now, but I need to import my old mails from Outlook. When I go to tools > import > Mail I get options for Eudora, Outlook, and Outlook Express. Eudora and Outlook options are grayed out. The option for Outlook Express is available, but who isn't even an option for me, since I am on Windows 7.

    I've read a few articles, and they point out that you must always have Outlook installed and configured as the default e-mail client. I made sure Outlook is set as the default mail client, but the import option is still grayed out. I tried restarting both Outlook and Thunderbird. I also tried the import with Outlook open and closed.

    Any help would be appreciated.

    You must Version31 or an earlier version. Something happened along the way with exit 38 and transformed into an accident. It is therefore turned off until it gets.

    Which language version would you need?

Maybe you are looking for

  • FIRST HP: GEOMETRY

    Why the GEOMETRY application draws derived for example. The function x ^ 2-x ^ 3, sine, cosine and does not scratch the functions derived as the tangent, logx, LNX. Draw an incomplete derivative of graph of y = 1 / x. Why is it like that.

  • That became the symbol of the 'House '? How do you return to your homepage to another site?

    What happened to the 'House' symbol in the toolbar? I have to close firefox and re-open it to get back to my home page. This "SUCKS" the old version has been produced, what is your problem? Bookmarks have no way to organize more. How many more screwe

  • Compaq presario SR2023WM missing ACPI\AWY0001\2

    I tried to install the previous suggestion and it has fixed the SM BUS controller, but I still have an unknown device with a missing driver. This driver is indicated (in properties) as ACPI\AWY0001\2 & DABA3FF & 0 Where can I get it and how do I inst

  • The best way to draw the difference of phase vs. time of two signals

    I have three channels (time, force, displacement) of approximately 1 000 seconds of a sinusoidal test load test data (sampling rate was 100 Hz).  I would draw the difference in phase between the force and displacement (perhaps using a second window 3

  • names of files and folders have been changed

    I now have many files and folders with the same name I have not changed. Running XP Home Edition and Norton 360. can I cancel this change to the original file names?