Hi, Im trying to add a fadeout as opposed to an abrupt ending to my preload screen. Can’t get anything to work. Can anyone help?
Topic summary
A developer is attempting to implement a fadeout transition for their preload screen instead of having it disappear abruptly.
Current Issue:
- The existing code shows a preloader implementation with mobile detection and timing logic
- The code appears corrupted or improperly formatted (text is reversed/garbled in places)
- None of the attempted solutions have worked so far
Technical Context:
- Uses vanilla JavaScript with
getElementByIdto target the preloader element - Includes mobile device detection via user agent checking
- Implements interval-based timing logic (appears to involve opacity changes at specific loading thresholds)
Status: The question remains unanswered with no solutions or suggestions provided yet. The developer is seeking assistance to achieve a smooth fadeout effect.