CSS animations do not seem to work properly on IOS devices

I have implemented the following CSS animations, which work perfectly on desktop browsers even when the window is resized.

body {
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-color: #0e1624;
    overflow-y: hidden;
    overflow-x: hidden;
    animation: enable-scroll 0.1s forwards;
    color: white;
    scroll-behavior: smooth;
}

@keyframes enable-scroll {
    to {
        overflow-y: auto;
    }
}

#page-loader {
    animation: page-loaded 0.3s ease-in-out forwards;
    animation-delay: 2.5s;
}

@keyframes page-loaded {
    to {
        display: none;
    }
}

Although these animations perform well on desktop, they do not run on my phone causing the content to stay hidden.

I am seeking advice on what could be causing this issue. Any insights?

Answer №1

Based on your description, it seems like you may be manually adjusting the window size, which may not fully reflect how responsive your website is. To accurately test responsiveness, use the developer tools available in your browser to simulate different device sizes.

For Google Chrome, Microsoft Edge, and Mozilla Firefox: Windows: Press F12 or Ctrl + Shift + I macOS: Press Cmd + Option + I

For Safari on macOS: macOS: Press Cmd + Option + I

https://i.sstatic.net/5UQGU.png

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

What is the best way to organize the data retrieved from the api into a map?

In my search page component, I display the search results based on the user's query input. Here is the code snippet: "use client"; import { useSearchParams } from "next/navigation"; import useFetch from "../hooks/useFetch&qu ...

Validation is not being applied to the radio button

Link: Issue with Form I've encountered a problem with my script that is meant to validate and submit a form, similar to this working example: Form in Working Order Unfortunately, the script is not functioning as intended on the first link. The Java ...

Issue with NextJS callback URL redirecting to another page is not occurring

When attempting to access a /Dashboard page after logging in through Gmail or GitHub on the client side using callbackUrl, I am encountering a 404 error stating that the page could not be found. The project directory structure for the relevant files is as ...

Ensuring Redirection to Login Page Upon Refresh in React Router Dom

I have encountered a scenario where the customer needs to be directed to the login screen upon Browser refresh. For example: import "./styles.css"; import { Route, Routes, BrowserRouter as Router, Outlet, Link } from "react-router- ...

Prevent MUI Autocomplete from closing when the option menu is opened with blur

Seeking assistance with modifying an autocomplete menu to include a dropdown for each item. Issue arises after trying to open the additional menu as it triggers an immediate closure of the autocomplete. For reference, attached is an image showcasing the i ...

Choose an input that is not grouped with the rest

I am facing an issue where I need to group these three inputs together as one continuous form. However, there seems to be a problem with the select input not aligning correctly with the rest of the form. Is there something that I might be doing wrong? & ...

Here's a guide on how to package and send values in ReactJs bundles

I'm currently involved in a ReactJs project that does not rely on any API for data management. For bundling the React APP, we are using Webpack in the project. The challenge now is to make the React APP usable on any website by simply including the ...

How about "Can I position two divs on the right side of the page

After browsing through some StackOverflow threads and other sources, I'm still struggling to figure out how to float two divs to the right while aligning them vertically (with the "sign in" div on top). Based on my findings, here are the key points: ...

Is there a way to prevent a span from appearing at the end of a line?

Imagine a scenario where I have a paragraph with various span elements that are styled using classes. What if there are numbers interspersed within the text for easy reference, and I want to ensure they do not end up at the end of a line? For example: 1 ...

Troubles arise when trying to encapsulate a ReactJS embedded application with Material ui, causing issues with the

Currently, I am integrating a ReactJS application using Material UI styled components within a Wordpress page. To achieve this, I am utilizing webpack for transpilation of the JavaScript. After generating the bundle for the embedded version of the applica ...

What advantage does React gain by utilizing the previous state to update state instead of the current state?

I'm seeking to grasp why it's better to utilize the previous state rather than the current state to update an element in React. Despite seeing this approach commonly used in code examples and tutorials, I haven't come across a satisfactory e ...

Unable to insert line breaks using " " or "<br>" in a textarea element

I'm struggling to insert a predefined string with line breaks into a <textarea> using React/NextJS. I've tried various methods, including using &#13; and <br>, but none seem to be effective: setTextAreaValue('a&#13;bc< ...

The alignment of text in the btn-check label of Bootstrap is not centered

My checkboxes with btn-check have labels of varying lengths. I want all the labels to be aligned in the middle, but I can't figure out how to do it. The screenshot below illustrates the issue with the first checkbox. The content is not centered in the ...

"Integrating React with Express.js: A Step-by-Step

I've successfully set up the basic files for express using express generator. I'm looking to incorporate React into my express project and integrate it with Express. What steps do I need to take to achieve this? ...

"Error with Material UI Select: Using an object as a value causes issues

In my application, I am utilizing Material UI and React. One of the features I implemented is a Select dropdown that allows users to change the displayed values. However, when I try to update the data on the page based on the user's selection, I encou ...

Introducing the innovative Icon Collapsable JQuery - a versatile tool that

I'm looking to set custom icons for the JQuery Collapsable view without having to make changes to the default JQuery CSS and .JS files. You can take a look at my starting point on jsFiddle here: http://jsfiddle.net/jakechasan/M7LLU/ Although I' ...

Utilizing jQuery to convert letter input values into English: a step-by-step guide

I am developing a basic web application using Jquery. In this application, I aim to restrict user input language. For instance, if a user enters the Russian letter б in the input field, I want to automatically convert it to an English character. Below is ...

Having Trouble with the Spacing Between Navbar and Page Content in Bootstrap?

Let's tackle the issue at hand: Here is the code snippet. A lot of it has been borrowed from examples and tutorials. <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top"> <div class="container"> <!-- Brand a ...

Storybook files enhanced with ESLint

Can anyone help me with writing a script for the stories extensions as well? Below is what I currently have: "eslint": "eslint '**/{*,*.stories}.{ts,tsx}'", Here's my project structure: src components SomeComponen ...

Having trouble with the mouse trail code on codepen.io

I am currently attempting to integrate this specific CodePen sample into a Hugo template called Somrat Theme. I'm facing challenges in deciding where to place the HTML file; only the 'no cursor' section should go into style.css, and I need ...