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

Substitute all text within the HTML element

I am trying to update the occurrences of '20' within the id="olderpost" with '30' This is what I attempted: <div id="olderpost"><a onclick="$.ajax({ dataType: 'script', url: '/actions/olderpost/20'}); retu ...

Issue with datetime picker in JavaScript/jQuery: Input fields added dynamically are not showing the datetime picker

I am currently investigating why the datetime picker does not work on a dynamically added input block within a table cell. A code snippet below serves as a proof of concept for this issue. In its present state, the default input tag (id: dti1) functions co ...

ASP.NET ensures that the entire page is validated by the form

Is it possible to validate only a specific part of the form instead of the entire page? Currently, when I try to validate textboxes on the page, the validation is applied to all textboxes. Here are more details: https://i.stack.imgur.com/eowMh.png The c ...

Is it possible to include parameters in an HTML GET request with Electron.Net?

I have successfully implemented a function in an Angular component within an Electron application using HttpClient: var auth = "Bearer" + "abdedede"; let header = new HttpHeaders({ "Content-Type": 'application/json&a ...

Resetting the quiz by utilizing the reset button

Hello everyone, I'm new to this platform called Stack Overflow. I need some help with my quiz reset button. It doesn't seem to be working as intended. According to my code, when the reset button is clicked at the end of the quiz, it should bring ...

Looking to adjust the background-image size of a table cell (td) upon clicking a specific

I have a website where I would like to display logos of different games with links attached to them. I have managed to adjust the size of the image on hover, but now I am looking for a way to keep the size bigger after clicking on the link. Is there a simp ...

I am unable to get JQuery UI Dialog to open on my end

Coding in HTML: <button type="button" class="btn btn-success" style="margin-bottom:14px" id="btnAdd" onclick="modaladdedit('URLToMyController')"><i class="fa fa-plus"> Add New</i></button> HEAD Tag Setup: <link rel=" ...

Is there a way to convert the structure of HTML/CSS into JSON format?

<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> .collapsible { background-color: #004c97; color: white; cursor: pointer; padding: 18px; width: 100%; border: none; text ...

Tips for including shared information across different ionic tabs

Is there a way to include some shared content, like a canvas, in between the content of different tabs in Ionic? I want this common content to be displayed across all tabs, while each tab still shows its own dynamic data below it. I attempted to add the c ...

Exploring search capabilities within D3 graph nodes

After creating a JSON file with four tiers and utilizing D3.js's collapsing box format to visualize it (source: https://bl.ocks.org/swayvil/b86f8d4941bdfcbfff8f69619cd2f460), I've run into an issue. The problem stems from the sheer size of the J ...

The box on my form is leaking my background color outside the 1px border, but only in Internet Explorer

While experimenting with background gradients and borders one day just for the fun of it, I made an interesting observation in Internet Explorer. The issue I encountered was that the background color was overflowing outside the radius border, but this onl ...

Implementing Jquery to attach a click event immediately after adding a new row to the table, all

I have an issue where I am adding a new row to my table. Within this row, there is a button that should be clickable and trigger an event. I have come across various solutions, but they all involve using the following code: .on('click', 'bu ...

The absence of PHP GET variable being set

I am encountering an issue with my registration php class. It is designed to display a form and upon clicking the registration button, it triggers a function in a login javascript file. This JavaScript file utilizes ajax to send data to an index.php file. ...

Techniques for preventing background layering using CSS

I have implemented a background image on the <input type="submit"> element to give it the appearance of a button. My CSS code looks like this: input.button { background-image:url(/path/to/image.png); } Furthermore, I would like to display a dif ...

"Upon choosing a file using the HTML input file multiple element, a triggered event

After selecting multiple files using the input type="file" HTML element, I am eager to start uploading them. Can you tell me which event I should use to execute code immediately after finalizing my file selection? This is what my HTML code looks like: &l ...

UI-Router: What is the best way to access a page within my project without adding it as a State?

Currently in the process of learning Angular and UI-Router. Initially, I followed the advice of many and chose to utilize UI-Router. In my original setup, the login page was included in all States. However, I decided it would be best to keep it as a separ ...

Connects URLs to the displayed outcomes in jQuery Auto-suggest Interface

This particular code snippet has been modified from a tutorial on jQuery autocomplete <!doctype html> <html lang="en> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> ...

Folding without extending

My button has a div inside it with content. I've set it up so that when the div is clicked, the collapsed content expands. The hover effect changes color and pointer as expected. But for some reason, clicking on the div doesn't expand the content ...

The combination of two tags can create a powerful and impactful presence

My task is to place two <h3> tags in the same line or paragraph. <h3>This is the first paragraph. </h3> <h3>This is the second paragraph.</h3> I would like the output to look like this: This is the first paragraph. This is Se ...

Sets a minimum width for a Bootstrap panel

I have a panel panel-default on my page to display some data. I want the panel's min-width to be 720px, and if the window is resized to less than 720px, I want a horizontal scrollbar to appear. However, the panel cannot shrink below 720px similar to u ...