All Questions
3,700 questions
1
vote
2
answers
79
views
How can I play an animation after the previous one is finished?
I have been trying the typewriter animation, and it went well!
.typewriter{
display: flex;
justify-content: center;
}
.typewriter .p1,.p2{
font-family: monospace;
font-size: 1.5rem;
/* ...
-5
votes
1
answer
37
views
Animation on bottom property [closed]
h1{
animation: bouncing 0.5s ease 0s infinite alternate both;
background: darkblue;
border-radius: 50%;
display: inline-block;
cursor: pointer;
font-size: 0.75;
font-weight: 300;
...
-1
votes
0
answers
55
views
How to Prevent Arrow Rotation from Resetting When Switching Accordion Menus in JavaScript? [closed]
Beginner Learner
I’m working on an accordion menu that toggles the visibility of menu items and rotates an arrow icon to indicate the open/closed state. The JavaScript code works as expected in most ...
0
votes
1
answer
70
views
Unexpected behaviour in slider's elements with different heights
I have three sections of weather: current weather, 1-day forecast, and finally, 5-day forecast, all sharing the same class weather section but supposed to have different heights.
I added a slide ...
1
vote
1
answer
20
views
Angular Animation Using stagger from a query with custom delay
I'm using an Angular 15 animation to handle the showing of images on a page.
transition(':enter', [
query('.chat', [
style({ opacity: 0, transform: 'translateY(30px)' }),
stagger('0.75s', [
...
1
vote
1
answer
48
views
Hover Effects are treated as click effects, but they work properly after resizing page
They were working before, but I was trying to add react based page linking and that seemed to have broken the hover effects and now I cannot get them to function properly again. They do the correct ...
0
votes
0
answers
47
views
How to make infinite animation of vertical lines moving along horizontal lines
How to make an infinite animation of vertical lines moving along horizontal lines using only CSS and HTML?
So far I have only got this option, but the distance between the lines does not decrease as ...
1
vote
1
answer
66
views
Pure css stacking card effect with sticky position, no javascript
I'm working on a section where these cards are stacked, the problem is that they do it using position: sticky and when the effect of cards is over, the cards go through the "sticky-header" ...
1
vote
1
answer
59
views
Applying scroll-snap-type on view-timeline based animated scroll
TL;DR: in this jsfiddle https://jsfiddle.net/kLp728xw/, I want to apply scroll-snap not only on vertical scroll as it already does, but also on horizontal scroll where the number 1~5 is shown.
I want ...
0
votes
2
answers
51
views
how to run animation after another animation using javascript
i have a ball starting at the upper left corner of a box and when you click on the button then it moves to go to the lower right corner. it stops when it reaches 350px
i want it to go up to the upper ...
0
votes
1
answer
66
views
How to create hover animated effect that follows mouse to a limit?
I'm trying to create a hover effect similar to what is used on this web page: https://www.halo-lab.com/
It is used in the "Our Services" section for the play button on the top right corner (...
0
votes
1
answer
48
views
Banner animation css
I want to create a banner animation with css and html, the first image will fade in and fade out to the second image, the second will fade in and fade out to the third, and the third will fade out to ...
1
vote
1
answer
80
views
Nintendo Wii zoom in animation transition with HTML, CSS and Javascript
I would like to make an animation like the Wii menu transition when you click a channel:
Wii Menu Video (min 0:16)
As you can see, window zooms in to the channel and then the channel page opens. ...
0
votes
0
answers
39
views
How do I end all animations on their last frame? [duplicate]
I've been struggling to get this button to start all my animations at the same time. After a lot of trial and error, I managed to get it working. However, when I watched how it played out, my elements ...
0
votes
1
answer
68
views
Man walking into a mountain hole transition [duplicate]
I have 3 divs, let's call them 'man', 'hole' and 'mountain'
Hole is layered over mountain at the bottom middle (like an enterance)
Man has an index higher than the hole so when his position increase ...
1
vote
2
answers
136
views
Javascript live typing animation that handles HTML tags
I'm building an HTML/CSS/JavaScript + jQuery web-application. I have a page that calls an API, which returns a string with HTML code. Here's an example:
// Data returned by server
data = {
text: &...
0
votes
2
answers
69
views
I can't figure out why view based animation is not working
I'd like to make a CSS animation where the timeline is based on the view of the element. However, it won't work, I already searched for it but no results.
I got a page with a container. In this ...
-1
votes
2
answers
72
views
How to trigger multiple animations when the user clicks on the <a> (link)
I have this Html code and I want all the animations to be played after clicking on the link :
document.querySelector('.play').addEventListener('click', function() {
document.querySelector('....
0
votes
0
answers
140
views
i want to make an animated arrow in html/css
I want to make this arrow animation. I want it to be centered and align the three lines that make the arrow shape. I want it to be smooth.
I'd like the three lines (that make the arrow) to align ...
4
votes
1
answer
136
views
Making a 3d planet environment
I have a planet I have given a linear-gradient and I am trying to make rocks circle the perimeter of the planet while also having maybe some visible weather on the planet look like typhoons wandering ...
0
votes
0
answers
28
views
Text wrapping around an object in the center while using css animation
I have created the below animation that contains 3 side by side text columns (newspaper style) continuously scrolling up and a separate div element with some text appearing later in the center of the ...
0
votes
0
answers
55
views
CSS animation on svg elements triggering recalcula style and layerize
when applying CSS animation on SVG element,
the performance recording shows that, it triggers lots of "Recalculate Style", "Layerize" tasks.
.svg-wrap {
animation: ...
0
votes
1
answer
45
views
Why this JavaScript function sometimes takes good value and works, and sometimes not? Probably a problem with refresh rate of the page
I'm trying to animate a snake composed of segments.
These segments should retreat when the mouse is stopped.
So I'm calculating the distance and when the mouse is stopped, I'm changing the position ...
0
votes
0
answers
28
views
Animation of one component affects other components
I have the following layout where
The Topbar component can be shown/hidden and slides up/down
The Bottombar component can be shown/hidden and slides up/down
The Wrapper components acts as a slider ...
0
votes
0
answers
49
views
CSS issue with animation-back of nth-of-type
I'm trying to target every nth-of-type for returning to the original position sequentially like moving to the right in this way. I'm new to programming.
I tried to assign to each different transform: ...
0
votes
0
answers
37
views
How can account for variable timing of adding words in this Javascript+CSS message animation?
I'm writing an animation for a streaming text response in a messaging service. Each word drops in to the bubble, which resizes dynamically.
It looks good with the right timing values, but try setting ...
0
votes
2
answers
33
views
css animate from top to center
This is my setup. I want content to be hidden just above the top, then on demand animate it to center. Obviously with following css opened class, this animation does not have desired effect (but ...
1
vote
2
answers
107
views
How to Fix Animation Jitter in Complex CSS and JS Web Animation?
I've been working on a complex animation for our company's website, but I'm encountering a jittering issue that I can't seem to resolve. The animation involves a combination of CSS transitions and ...
0
votes
0
answers
46
views
CSS: Animation with a scrollbar?
Trying to use CSS animation for the first time. This is just a simple HTML page with a story. I just wanted to add a simple dripping animation over the page, which I have working nicely, but for ...
0
votes
1
answer
25
views
Keyframe Animation in Loop
Keyframe animation in infinity loop, try to fix can anyone fix this?
I've tried many different combinations of animation-direction but to no avail.
The below works but when it gets to the second ...
0
votes
1
answer
96
views
How can I create a grid line animation for my homepage similar to Acertinity UI using pure HTML, CSS, and JavaScript?
I am trying to replicate the grid line animation effect seen on the Acertinity UI homepage using pure HTML, CSS, and JavaScript. Below is a GIF of the animation effect I am referring to:
Click to See ...
1
vote
1
answer
48
views
Is there a possibility to play a CSS animation if the content of an element is changed?
On my website, I've got a credit counter which updates every 10 seconds and increments by 10. I am looking for a possibility to play an animation on the very counter once the number changes.
The ...
3
votes
3
answers
124
views
Animation with InnerHTML
document.getElementById("first-img").addEventListener("click", function(){
document.getElementById("detail-img").innerHTML = `Detail of first img`
})
document.getElementById("second-img")....
2
votes
1
answer
53
views
White space coming on last of animation of feed
I am making a auto horizontal scroll feed section for my website its working but little problem is that when animation reach at last from left to right there is some white space coming i dont know why ...
0
votes
1
answer
79
views
Animation image and text
My code contains an img and text will popup if the img is clicked.
I want to make the second image and third image (on bottom) be animated when the text pops up (when the first image is clicked). It ...
0
votes
1
answer
112
views
css slideshow image some time flicker and and some time just a blank between slide
I have created a slideshow for my project homepage, but on occasion, the screen simply flashes white and then resumes the slideshow. Could you kindly provide any suggestions? I have been unable to ...
0
votes
0
answers
56
views
Weird CSS animation when trying to stagger animation object flying in from outside of overflow hidden
I'm trying to animate objects flying in from outside of an overflow hidden div, then one by one the objects would shrink to disappear and a different object will appear to replace the original one.
...
1
vote
1
answer
41
views
Animations triggered by HTML events that happen to other HTML element
How do I make an animation of an icon that plays only when I hover on another Element?
I'm making a dumb project to better understand HTML, CSS and JavaScript (I'm a newbie).
I wanted to have an ...
1
vote
0
answers
53
views
Logo carousel resets abruptly and does not work like a smooth infinite loop
I'm attempting to create an endless loop of sliding logos, but on mobile and certain screen sizes (such as 13" Mac), it doesn't complete a full rotation. Instead, it resets just before the logo ...
0
votes
0
answers
68
views
How to implement snapping animation in to a momentum based drag scrolling?
I have a momentum based drag scrolling and I implement snapping behavior. The problem is the snapping animation is instantaneous. How to make it smoother?
I try this using the momentum based ...
1
vote
1
answer
110
views
Animation scroll with sticky elements
I have a layout that includes full width image and below 2 columns with text.
In the beginning I would like to hide text columns, so it is something like an image cover the whole text in the viewport....
0
votes
0
answers
13
views
Animate hidden content on button click [duplicate]
i have a website where when the user clicks on the "next" button it hides the current page and swtiches to the next, like a guide-installer.
And now i need to fade in the pages, how can i do ...
0
votes
1
answer
54
views
Flashing JS text with hyperlink
I want flashing text to link to two different pages, and for the background colors to take over the entire page. I'm a novice, any help with JS is appreciated! Or maybe I don't even need JS for this.
...
0
votes
0
answers
37
views
ScrollY always returns 0 unless DevTools is open
I'm working on a web project where I have a scroll-triggered animation. The bar charts in a graph are supposed to pop up when the user reaches a certain point. The animations aren't happening as ...
1
vote
1
answer
129
views
How to Create Sticky, Cohesive Shape-to-Shape (Containers) Morphing with CSS and JavaScript?
I'm trying to create an effect where two rectangular shapes (with rounded ends), each containing text, move toward each other, merge/morph into a singular rounded rectangle as I scroll down the page, ...
0
votes
1
answer
53
views
Problems adding an animated HTML canvas background to webpage
I am trying to add the following animation to my webpage background link to the background, the problem i'm facing is that the background loads on top of all the content of my webpage, as to by ...
1
vote
1
answer
55
views
Scroll animation is not working properly [CSS]
I was trying to create an infinite scroll animation with smooth transition.
.container-contribution {
width: 45%;
display: flex;
justify-content: center;
flex-direction: column;
gap: ...
-1
votes
1
answer
42
views
how do I turn an animation into a pre-loader
basically I saw a lot of youtube videos on how to make pre-loaders, however, all of them instead of teaching how to actually make a pre loader, just show a cool animation. I have already made an ...
0
votes
1
answer
51
views
How do I make an animation of an outline being filled
I was trying to make something like the pre loading animation of this website. I have tried chat gpt, but he gave me something weird instead of the svg being filled it simply put a black square on top ...
0
votes
0
answers
116
views
Framer motion not changing display value
I have an animation on my next.js app used on a mobile menu. The animation controls the opening and closing. I've made it using Framer motion and it worked perfectly until now. Basically, when I close ...