The navigation menu displays a flickering effect while transitioning between pages, specifically noticeable on Chrome

I am facing an issue with a website I am currently building. The navigation menu seems to flicker when transitioning from one page to another, but this problem only occurs in Chrome and IE.

What's even more puzzling is that the flickering doesn't occur when I open the website in an incognito window on Chrome or when I view it locally.

You can see a live example here -

Below is the code for the navigation:

Navigation HTML -

<body>

<div class="menuButton" onclick="decide(this);">
  <div id = "bar1"></div>
  <div id = "bar2"></div>
  <div id = "bar3"></div>
</div>

<div id ="nav">
     <ul>
        <a href = "home.html"><li>HOME<span style = "float: right; padding-right: 2%;">></span></li><a/>
        <a href = "portfolio.html"><li>PORTFOLIO<span style = "float: right; padding-right: 2%;">></span></li><a/>
        <a href = "cv.html"><li>CV<span style = "float: right; padding-right: 2%;>></span></li><a/>
        <a href = "contact.html"><li>CONTACT<span style = "float: right; padding-right: 2%;">></span></li><a/>
    </ul>
</div>

Navigation CSS -

#nav {
    height: 100%; 
    width: 22%;
    text-align: center;
    box-shadow: 2px 2px 5px #888888;
    transition: all .3s ease-in-out;
    background-color: #1b1d1f;
    float: left;
    position: fixed;
    z-index: 2;
}

#nav ul {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    line-height: 2;
    margin-top: 20%;
}

#nav a {
    text-decoration: none;
}

#nav li {
    transition: all .2s ease-in-out;
    color: white;
    font-size: 25px;
    text-align: left;
    padding-left: 15px;
}

Answer №1

After thorough testing on both Chrome and Safari, I have not been able to replicate the flickering issue you mentioned. It is possible that the flickering occurs due to the speed of loading and the navigation bar loading in. This could be more prominent when accessing the site from a public server as opposed to locally. Local tests generally load faster since they pull files directly from your computer.

Answer №2

After some investigation, I discovered the issue. An extension on Chrome was causing my browser to lag, thus slowing down the loading of the navigation bar.

This explained why everything worked fine in incognito mode where extensions are disabled!

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

Removing the year data and converting the month in JavaScript

Currently, I am utilizing the following code snippet to parse XML in Javascript: $this(find).text() When this code runs within an HTML environment, the output for the date from the XML data appears as: 2014-04-07T19:48:00 My objective is to format it l ...

query in PHP to display specific data

Seeking guidance for developing a document tracking system using PHP. Struggling with defining the correct title for my project and unable to generate relevant keywords for search queries. The main issue pertains to determining how the system can validat ...

The jQuery gallery is experiencing some functionality issues

Having an issue with the gallery on my website (currently on my computer, not yet uploaded to a server). Here is the script for the gallery (loaded from the server using PHP): $(document).ready(function() { $('.gallery').hide(); $(' ...

Adjust the column count in mat-grid-list upon the initial loading of the component

My goal is to implement a mat-grid-list of images with a dynamic number of columns based on the screen size. Everything works perfectly except for one small glitch – when the grid first loads, it defaults to 3 columns regardless of the screen size until ...

margin-top aligned to the bottom of two elements

Within this straightforward CSS snippet, my goal is to align the bottom of h1 with the bottom of p, without having h1 display below p. <div id="sqrs" style="width:200px; height:200px; border:1px solid BLACK;"> <p style="width:100px; height:100px; ...

I am in the process of creating several checkboxes and am looking to incorporate some added functionality

Currently, I am working on a project that involves creating multiple checkboxes. My goal is to implement a specific functionality where only one checkbox can be checked in each group with the correct or incorrect value. Once all groups have been selected, ...

Do overlay elements have to be positioned at the bottom of the HTML body every time?

As I delve into the world of JavaScript frameworks, one common trend I've noticed is that elements like dialogs, tooltips, and alerts usually appear at the end of the body tag. With my own implementation of these UI elements, I am determined to make ...

What is the most efficient way to combine a parameter string within a JavaScript function and append it to an HTML string?

Welcome to my HTML code snippet! <div id="content"></div> Afterwards, I add an input to #content: $( document ).ready(function() { // Handler for .ready() called. var parameter = "<p>Hello</p>"; $("#content").appe ...

Utilizing Script Variables in Popup Windows

After creating a script that requires users to enter the same password twice during sign up, I encountered a challenge. I aim to trigger a confirmation pop-up where users must confirm their ID, which is 'nokppeminjam'. Can I use the variable in t ...

Content is not properly fitting in the Bootstrap modal window

I am experiencing difficulties with the appearance of a bootstrap modal on my website. Specifically, the modal div seems to be too tall and too narrow in comparison to the modal-dialog div. Here is where I am triggering the modal. <footer> < ...

Subsequent line in hta/html

I have been attempting to achieve the following output: Line 1 Line 2 Line 3 My attempts so far have included: <p>Line 1 Line 2 Line 3</p> Unfortunately, this results in: Line 1 Line 2 Line 3 I also tried the following method: <p>L ...

Obtaining a string from a regular expression does not function as anticipated

Currently, I am in the midst of a project that requires me to identify specific HTML tags and replace them with others. To accomplish this task, I am utilizing JavaScript, and the code snippet looks like this: // html to update html = '<div cla ...

What is causing the navigation to disappear off the left side of the screen when the media query is activated?

When the screen size is less than 450px, the logo disappears in order to make room for navigation. However, the navigation then extends about 20px off the left side of the screen. View the code here This CSS code snippet appears to be relevant: @media s ...

Troubles with CSS Child Hover, Rotation, and Clipping in Pie Chart styling

The issue I am facing is with a 3-section pie chart where all sections look virtually identical. However, the :hover effect does not trigger on the first section, but it works on the other two. Each element has an equal number of overlapping parent divs, ...

Ways to center Bootstrap panel in the middle of a webpage

Is there a way to center this entire panel on the web page? I could use some guidance with this. Does anyone have recommendations for a good book to learn Bootstrap design? <div class="panel panel-default" style="max-width:500px;margin-left:auto;margi ...

Interacting with a JavaScript button using C# WebBrowser

Can someone please assist me with a problem I'm facing? I have a webpage coded in HTML and Javascript. Whenever I use webBrowser1.Document.GetElementById("hmenu").InvokeMember("click");, the menu pops up on my screen. However, I am unsure how to cli ...

What is the best method for automating the transfer of data from a database to the user interface of a website using html and javascript?

As a volunteer coordinator for a non-profit organization, I have some basic experience working with Python. I am willing to dedicate fewer than 8 hours of learning time to my current project in order to automate certain tasks (or else I will do them manual ...

Discover the amazing capabilities of Beautiful Soup's find function in extracting numerical data from Google

Just finished watching a tutorial on beautiful soup and decided to put it to the test by scraping some data from Google. After searching for "coronavirus UK" I aimed to extract the current number of confirmed cases. A table on the upper right side of the ...

When clicking on the Bootstrap navbar after implementing the onclick functionality, the color changes to

I was having no issues with my navbar until I introduced an onclick function to it. Here is the code for my onclick function: $('.nav li a').click(function() { if (location.pathname.replace(/^\//,'') == this.pathname.replace(/ ...

Unable to locate the CSS for the selected dropdown button in Bootstrap

Seeking help to locate the CSS code responsible for the blue border on a select dropdown button in Bootstrap. It seems simple, but I'm unable to find it. If anyone knows where this specific class is located in the CSS file, please share your insights ...