Having issues with ScrollMagic not functioning properly in Internet Explorer 11

The jQuery used in this code successfully adds a new class running to elements with the class paused when scrolling to the trigger element in all browsers except IE11.

The trigger element is set on a div. It works in Firefox, Safari, and Chrome by adding the class, but in IE11, it doesn't respond to the trigger.

Could this be an issue related to IE11 compatibility with jQuery .ready function?

$(document).ready(function() {

        var scene1 = new ScrollMagic.Scene({triggerElement: "#trigger1"})
                        .setClassToggle(".svg1 .paused", "running")
                        .addTo(controller);
        var scene3 = new ScrollMagic.Scene({triggerElement: "#trigger3"})
                        .setClassToggle(".svg3 .paused", "running")
                        .addTo(controller);

});

$(document).ready(function() {
    if ($(window).width() <= 991) {

        var scene2 = new ScrollMagic.Scene({triggerElement: "#trigger5"})
                        .setClassToggle(".svg2 .paused", "running")
                        .addTo(controller);

        var scene4 = new ScrollMagic.Scene({triggerElement: "#trigger6"})
                        .setClassToggle(".svg4 .paused", "running")
                        .addTo(controller);
    }
});

$(document).ready(function() {
    if ($(window).width() >= 992) {

    var scene2 = new ScrollMagic.Scene({triggerElement: "#trigger2"})
                    .setClassToggle(".svg2 .paused", "running")
                    .addTo(controller);

    var scene4 = new ScrollMagic.Scene({triggerElement: "#trigger4"})
                    .setClassToggle(".svg4 .paused", "running")
                    .addTo(controller);
    }
});

Answer №1

Response, with no workaround.

In the case of IE11, it is impossible to apply a class to an SVG element using jQuery or JavaScript. This limitation means that ScrollMagic is compatible with IE11 only if the graphic format is PNG or JPEG, and not SVG.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The functionality of Image Map is operational in Chrome and FireFox, but encountering issues in Internet Explorer

Hey everyone, I've been struggling with this issue for weeks now. My image map works perfectly in Firefox and Chrome, but for some reason, it's not functioning in Internet Explorer. Could someone please take a look at my code and help me figure o ...

Show the JSON response in a specific div element by using the @Ajax.beginForm function

My goal is to show an error message returned from the server using Ajax.beginform in MVC4. Although I am receiving the response and error message from the server, when I try to display the error in a div, it appears as shown below: {"success":false,"Other ...

Convert a single object into a JSON string representation on each line

Can you convert the following data into the desired format through stringification? Data: let result = JSON.stringify([ { "Color": "Red", "Type":"Fast" }, { "Color": "Blue&quo ...

What could be causing the problem with the content within PHP tags in the index.php file

My current php code or the method I am using to access content from multiple pages seems to be causing a problem, as it is not displaying the contents inside index.php. The logic in my index.php file is: <div> <ul> <li><a href= ...

The unzipper will disregard any empty directories within the file

I am a Japanese Web Developer. Unfortunately, I struggle with English. https://www.npmjs.com/package/unzipper This library is currently in use by me. Below you will find my code snippet: // unzip module import fs from 'fs-extra' import unzip ...

What is the best way to show the current date and time in an Angular template while ensuring it stays up to

I'm looking to showcase the current date and time in my angular template, and have it automatically refresh when the time changes. The desired application LOOKS as follows: This snippet is from my .html template: <div class="top-right pull-right ...

JQuery form serialize not triggering in Internet Explorer

I've encountered an issue with a form inside a jQuery dialog that is not submitting properly in Internet Explorer. The form functions correctly in Chrome and Firefox, sending data to my MVC controller without any issues. However, when using IE, it on ...

Please indicate the IP address and host in the AJAX request

Currently, I am working on an internal project where I am using $.ajax to retrieve data from a different server. Although my hosts file is correctly configured and everything is operating smoothly for me, the same cannot be said for my co-workers due to is ...

Is there a way for app.use to identify and match requests that begin with the same path?

Given that app.use() responds to any path that starts with /, why does the request localhost:3000/foo match the second method instead of the first? app.use("/",express.static('public'), function(req,res,next) { console.log(& ...

Adjust camera angle to directly face object while ensuring latitude and longitude coordinates remain accurate

My current camera control code involves moving a vector (camera.target) and then setting the camera to look at that vector using camera.lookAt( camera.target ). The onDocumentMouseMove function calculates longitude and latitude values which are used to a ...

Anchor tags appear to be properly connected to IDs, however they are not functioning correctly

I can't seem to understand why this issue is occurring. My navigation bar works fine and the anchor links are functioning as expected, but when I click on them, the page either reloads or turns into a blank white screen. Here's a link to the pag ...

Bug found in React Native when navigating between screens causing the screen size to shrink

Check out the image below. https://i.stack.imgur.com/t04Vv.png Issue: Whenever I switch to a new scene, the previous screen appears to shrink or move upwards. This behavior is not consistent with the usual user experience seen on Apple apps - any thought ...

Ensure that the tab remains active even after a postback using jQuery

I have tried multiple approaches, but none seem to be working. Can anyone offer some assistance? <script src="../Scripts/jquery1.9.1.js"></script> <script src="../Scripts/jquery-ui.js"></script> <div id="tabContainer"> &l ...

Key-Value Pairs in a Multidimensional Array using JavaScript

After making an AJAX request to a JSON, I receive the following code as a response: { total: "1", items: [ { id: 43, title: "ThisIsTheTitle", promoted: false, sticky: false, weight: 10, created: { timest ...

Image Animation Using a Rotational Control (HTML/JavaScript/...)

I am interested in achieving a specific effect with a series of images that transition from dark to light. My idea is to have a dial or slider underneath or over the frame so that when it is moved to the left, the black image is displayed, and when moved t ...

I am having trouble with my quiz function as it only checks the answer correctly for the first question. Does anyone have suggestions on how to make it work for

Currently, I'm tackling a quiz project that was assigned to me during my bootcamp. My focus right now is on the checkAnswer function, which evaluates the answer selected by the player. const startButton = document.querySelector(".start") as ...

Incorporate a unique identifier for dynamic elements

Is there a way to give generated divs the same name so I can markup them easily? $.getJSON("data/reviews.json", function(data){ for(var i=0; i<data.length; i++) { var review = sym.createChildSymbol("Template", "content"); review.$("title").html ...

Move the Bootstrap modal footer button to the left side

I am trying to align the cancel button to the left of the footer and keep the close and save buttons on the right side at all times. Even after adding the float:left property to the cancel button, it did not solve my issue. I would appreciate any solution ...

Could you provide me with a demonstration of cross-domain functionality?

Similar Inquiry: Methods to bypass the same-origin policy Let's consider two domains for this example - "" and "". The first domain "" is generating data in JSON format as shown below: { "str_info": [ { "str_name": "Mark ...

Adding and removing classes in NativeScript: A step-by-step guide

Attempting to lower the opacity of my StackLayout while making an Ajax API call. The structure of my page is as follows: <Page loaded="pageLoaded" class="page" xmlns="http://www.nativescript.org/tns.xsd"> <ActionBar title="Settings" clas ...