Is there a way to eliminate the black bar appearing on my progress bars in Chrome due to a glitch?

I've created a simple slideshow with a progress bar that functions as a 5-second timer before moving to the next slide. However, there's a strange black section on the progress bar in Chrome that I can't figure out. Here you can view the code in action...

https://codepen.io/Matiny/pen/pGEXGa

Check out a screen clipping of the issue here...

A brief overview of what you're currently observing...

The slideshow consists of 4 bars with absolute positioning. They expand and become visible through a function that adds a class every 5 seconds.

I'm aware that I could change scaleX(50) to width: 50%, but that might use more browser resources.

In order to provide more context, here is my code snippet along with the CodePen link...

HTML

 <div class="container">
      <div class="row align-items-md-center justify-content-md-start justify-content-center">
<div class="slideshow shadow col-6">
          <figure>
            <img src="https://queentessence.io/static/img/icons/back-button.svg" alt="left arrow" class="back-arrow">
            <img src="https://queentessence.io/static/img/icons/front-button.svg" alt="right arrow" class="front-arrow">
            <div class="slide-bg">
              <div class="service-image">
                <i class="material-icons play-button">play_arrow</i>
                <i class="material-icons pause-button play-pause">pause</i>
                <img src="https://queentessence.io/static/img/icons/analytics.png" alt="" class="icon-1 slide-animate">
                <img src="https://queentessence.io/static/img/icons/security.png" alt="" class="icon-2">
                <img src="https://queentessence.io/static/img/icons/dashboard.png" alt="" class="icon-3">
                <img src="https://queentessence.io/static/img/icons/customize.png" alt="" class="icon-4">
              </div>
            </div>

            <figcaption>
              <h3 class="name text-center">Advanced Analytics</h3>
              <div class="all-bars">
                <div class="load-bar bar1"></div>
                <div class="load-bar bar2"></div>
                <div class="load-bar bar3"></div>
                <div class="load-bar bar4"></div>
              </div>
              <p class="description text-center"></p>
              <a href="#">
                <div class="btn-group-toggle text-center feature-button">
                  <button class="btn btn-yes bg-light-1">
                    READ MORE <i class="material-icons">
                      arrow_forward
                    </i>
                  </button>
                </div>
              </a>
            </figcaption>
          </figure>
        </div>
        </div>
  </div>

SCSS

    @import url('https://fonts.googleapis.com/css?family=Mukta:700');

@mixin positions($number1, $number2) {
  position: absolute;
  left: $number1;
  top: $number2;
  transform: translate(-$number1,-$number2);
}

.slideshow {
  position: relative;
  margin-top: 2.5%;
}

.slideshow figure {
  height: 100%;
  width: 35vw;
  margin...

jQuery

// The script controlling the slideshow

$(".bar4").addClass("full-bar");

var slider;

var modular = "Drag and drop tiles to customize your dashboard's stats.";

var secure = "Gain the tools to keep your network secure and properly tracked.";

var splash = "Effortlessly update your venue's splash page with our simple page editor.";

var analytics = "Work with a variety of data to better suit your business.";

function slideForward() {
    $(".pause-button").addClass("play-pause").siblings("i").removeClass("play-pause");
    $(".bar1").hasClass("full-bar") ?
    changeSlide(".icon-2", "Modular Dashboard", modular, ".bar2") :
    $(".bar2").hasClass("full-bar") ?
    changeSlide(".icon-3", "Powerful Splash Page Editor", splash, ...

Answer №1

One solution that I found effective in Chrome was setting the outline to transparent:

.full-bar {
  transition: 5s transform;
  transform: scaleX(50);
  // width: 50%;
  visibility: visible;
  outline: 1px solid transparent;
}

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

When the drop-down selection changes in AngularJS, the textbox value becomes empty

When the user selects "text-box-value-empty", the textbox should be disabled and cleared. I have attempted to accomplish this using the code below, but unfortunately, it is not working as expected. If the user enters a value and then selects "text-box-valu ...

Using jQuery with AJAX for retrieving data and returning a value

I've come across this script: function getUsername() { $.ajax("http://one2xs.com/index.php", { success: function(a) { console.log($(a).find("#left").html().match(/Je bent ingelogd als ([ ^A-z0-9]*)/)[1]); return $( ...

The process of updating a session using jQuery

Whenever a checkbox is selected, the session gets populated with an id. However, if another checkbox is selected afterwards, the session remains unchanged. This is my current code structure: <input type='checkbox' class='imei' id=&a ...

Wordpress Custom Post Type with a Sleek Slider Plugin

I am currently using a static slick slider to display testimonials on my website. Instead of hardcoding the testimonials, I want to fetch them from a WordPress custom post type that I have created. Can someone guide me in the right direction: <section ...

Is iOS Safari automatically filling all fields with identical information?

I'm in the process of creating a basic form that allows users to input their name/email and their friend's name/email. The code snippet can be found below. Interestingly, while most browsers autofill only the first two fields, iOS Safari on my i ...

Unable to adjust iframe height

Below is a snippet of code that I am working with: <style type="text/css"> .div_class { position:absolute; border:1px solid blue; left:50%; margin-left:-375px; margin-top:100px; height:300px; width:500px; overflow:hidden; } .iframe_class { position: ...

Accelerate Image Preloading速

I am currently in the process of creating a website that features divs with background images. Although I am new to JavaScript, I am eager to learn more about it. My main goal is to preload these images so that visitors do not encounter any delays or bla ...

Converting a PHP timestamp to a jQuery-compatible format

Can someone help me find the equivalent function in jQuery that will give me a time format similar to this: date( 'Y-m-d\TH:i:sP'); //the output is like this. 2013-10-30T18:10:28+01:00 I am looking for this specific format in jQuery to use ...

What is the process for turning off tooltips and implementing an information window into amMap?

I've developed an amMap to display areas, and I'm looking for a way to turn off the tooltip and instead show an infowindow when a specific state is clicked. Any suggestions on how to accomplish this? ...

What is the best way to include default data in a jQuery AJAX request?

I need help sending a form full of inputs along with a specialVariable in the same AJAX request. How can I achieve this? $.ajax({ method: "POST", url: "some.php", data: { somethingSpecial: specialVariable" } }) ...

Vue.js does not support using nested v-for loops with p tags

I'm facing an issue with nesting 2 v-for loops in Vue.js. It seems simple, but for some reason, it's not working as expected and I can't figure out why. Looping through the users and displaying their names works perfectly. Even extracting t ...

Issue with Highcharts failing to render points on regular intervals

I am facing an issue where the line graph in my frontend application using highcharts disappears or fails to draw to the next new data point every 30 seconds. Can anyone provide insight into why this might be happening? Check out the fiddle: http://jsfidd ...

Executing a function with a click, then undoing it with a second click

My goal is to trigger an animation that involves text sliding off the screen only when the burger icon is clicked, rather than loading immediately upon refreshing the page. The desired behavior includes activating the function on the initial click and then ...

Triggering document.ready() in a new window or tab using jQuery after opening the window

How can I properly initiate a document.ready() in the window (myWindow) where I'm injecting data using the code provided below? $.ajax({ type: 'POST', url: url, dataType: 'html', data: { plogid: parentLogid ...

Apply the `text-overflow: ellipsis` property to truncate the text of two items within a flex column, which is contained within

I am attempting to accomplish the following: Successfully implementing ellipsis for a single item is achieved with: white-space: nowrap; overflow: hidden; text-overflow: ellipsis; However, my challenge lies in truncating two items. One should appear be ...

Click to remove the accordion div

My query is regarding an accordion feature that I have implemented. <div id="accordion" class="accord"> <h2> <a href="#">Item1</a></h2> <div> Content1 </div> <h2 > &l ...

Ways to customize hover color of Bootstrap 5 Dropdown menu

I'm having trouble modifying the hover color for a dropdown menu using Bootstrap 5. I'm unsure of the correct method to achieve this. The desired outcome is as follows: However, at the moment it appears like this: Apologies for the oversight, h ...

Utilizing asynchronous AJAX request to dynamically add a new row to the table with corresponding data

// Below is the JSP page code: function sendAjaxRequest() { var City=$('#City').val(); window.alert(City+"New City Created"); $.ajax ({ type: "GET", async : true, url: "http://localhost:8080/OnlineStore/kmsg/grocery/A ...

Issue with Jquery Conflict in WordPress

Apologies if my inquiry is not up to standard. I am currently utilizing a Google library in my project. <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> The issue arises when this conflicts with the jQuery u ...

Disabling the movement of arrows in the client-testimonials-carousel plugin

This plugin that I'm currently using is working flawlessly: However, I'm unsure about how to make the arrows stationary and prevent them from moving. Currently, they are centering themselves based on the height of the div, but I want them to rem ...