8,570 questions
0
votes
0
answers
29
views
Changing the code so that the gradient animation only applies to the top 15% of the page
I got this code through a CSS animated gradient and I was wondering if there's a way to make sure only the top 15% of the page has the animated gradient, while the rest of the page stays black? Thanks!...
0
votes
0
answers
69
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: ...
1
vote
2
answers
52
views
Border bleed on a button with slide animation
Problem
I am trying to create a button with a sliding animation. The button has a border-radius and uses pseudo-elements to achieve the effect.
Here is the markup:
<div role="button" ...
1
vote
0
answers
70
views
Pull effect when at end of overscroll element
How to achieve in CSS that pull effect when reaching the end of the content of a scrollable container?
I was browsing my website on mobile, and I am frustrated when at the end of the horizontal scroll ...
0
votes
1
answer
50
views
Added content to fixed height make it not viewable, and using null height break animation
I have a button that should hidden area with nice animation. It's using height attribute to make the animation.
The issue is, when I add content to the "hiddenable" area, the content isn't ...
0
votes
1
answer
73
views
Text fill effect but controlled by percentage
I'm attempting to create a text fill effect that will be controlled by a useState.
I have the following text:
According to a state I want it to be filled from left to right, although the last letter ...
2
votes
1
answer
54
views
Is it possible to define @keyfames percentage based on css variable?
I've got an animation that depends on the number of characters
It works fine with 20 characters:
const text = '20 characters length'
const speed = 0.1
const $container = document.querySelector('....
1
vote
1
answer
359
views
Add a progress animation to a circle
I'm doing a Pomodoro Timer using HTML+CSS+JavaScript.
I want to have a progress animation around the circle that starts at the top of the circle and rotates clockwise until completing the full circle.
...
0
votes
1
answer
76
views
how can i rotate the base of a image but not the image itself
so what i want to do is some title that rotates around but the image shouldnt be rotating, only thing that must rotate is the base of it to give a example maybe i can say hotline miami 1's main menu. ...
1
vote
0
answers
135
views
How to fix this meter display animation from bottom to up using HTML and CSS?
I am working on a Blazor Hybrid Project (Web App) that have a meter display component. This meter display component will display string of numbers that resembles a real meter display. When a new ...
0
votes
1
answer
119
views
activating a keyframe animation based on a click event that adds & removes a css class
I'm trying to use keyframe animations to move a block up and down based on adding or removing a class using jquery click. However, this seems to "jiggle" the orange div on first click, and ...
0
votes
1
answer
647
views
CSS animation-timeline: view() / scrolling not working
I have a page (created with bootstrap studio) with a few sections, if i test it on my section itself it works when it comes to view, but i have a row with 2 colums in that section, when i try it with ...
0
votes
0
answers
89
views
Html css marquee
So im tring to do an animation like a marquee
like so
my code dont work as i wont
.scrolling-text {
display: inline-block;
animation: scroll-text 10s linear infinite;
}
...
1
vote
0
answers
62
views
How to avoid slow down over long period in infinite animations of CSS?
I have this CSS code below that triggers animation in a path of a D3 graph.The code likes below
.link {
stroke-dasharray: 4;
stroke-dashoffset: 40;
animation: dash 20s linear infinite;
}
@...
2
votes
1
answer
55
views
useInterval JS useState React and Animation CSS
I am changing text between two values using React useState and setInterval and it works fine.
function Home() {
const [role, setRole] = useState("Text A");
const inter = setInterval(() =...
1
vote
1
answer
50
views
How can I animate sidebar items sliding up when an item is deleted?
I am trying to create a sidebar with a list of items. When an item is deleted, I want the remaining items to slide up smoothly to fill the space left by the deleted item. How can I achieve this?
This ...
0
votes
1
answer
180
views
'hide' animation is not displaying for toast
I'm having some trouble getting my 'hide' animation to work for my toasts. The 'show' animation works as expected when the toast appears, but the 'hide' animation fails to display and the toast simply ...
0
votes
0
answers
63
views
Moving bright spots in a background image animation
I guys, can you help me that how can I do this animation with my ReactJS project?
static capture
I saw it in Homepage and really like it.
I had search for some library and I find react-three/fiber and ...
1
vote
3
answers
88
views
Want to change animation speed of all child elements on hovering on the parent element
body {
padding: 300px;
background-color: rgb(15, 19, 24);
}
.m {
display: flex;
justify-content: center;
align-items: center;
transition: all 0.8s ease-in-out;
}
.m * {
transition: all ...
1
vote
1
answer
53
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
votes
1
answer
71
views
Linearity when using KeyFrame and Timelime in JavaFX
I have a class with an "animation()" method that makes use of the JavaFX KeyFrame and Timeline classes. When I try to execute this method of object a1 (a1.animation()), the method of object ...
1
vote
0
answers
88
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
47
views
How do implement a when a div was clicked it will expand and scroll to that div smoothly?
I have 1 parent div and 4 child div, the 4 child take all the space evenly, and when user click one of the child it expand taking all the space and the parent will be scrollable horizontally. My ...
3
votes
0
answers
79
views
Clip-path: how to create a circle that paints clockwise?
How can I do an animation where there a circle that is not visible, then a circle paints clockwise like below until the whole circle is visible? The code below works great for 0% - 25% as it smoothly ...
0
votes
1
answer
88
views
Why is my @-webkit-keyframes fade in animation not working when loading page? [closed]
I am creating a personal portfolio and am attempting to add a CSS animation to fade in an image. For some reason, I am unable to figure out why my animation is not showing up in my site when I load it....