Skip to main content

All Questions

Tagged with
1 vote
2 answers
138 views

How to detect background-image loading for each page lazyload element to prevent broken images

I'm trying over my computer to make a lazyloader for images that dynamically replaces the css value background-image with the attribute data-bgimg The code for doing this it's very simple. See below: $...
javascriptprogrammerf's user avatar
0 votes
0 answers
29 views

How to stretch background image of a div

I have resizable divs with background images, and contrary to usual needs, I would like the background to stretch and fill the div when it is resized. How would I achieve this? I was thinking about ...
kur0bane's user avatar
-3 votes
1 answer
148 views

Timeline effect CSS only [closed]

Here is a demo with the result I want to acheve: https://ultimateelementor.com/widgets/timeline/#content_timeline There is centered gray (inactive) line, which goes purple (active) when scrolling. Can ...
delyakov's user avatar
1 vote
0 answers
49 views

How to active on scroll the same function as on click and change the color of the each different section

I have a click function which is working to add a class "active" but I want to make it work with the scroll aswell. Another thing is I have a lighthouse background image and I want to make ...
Pierre's user avatar
  • 11
0 votes
2 answers
856 views

How can I load a background-image smoothly with CSS or Javascript/jQuery?

I just want to make a body background image load (fade in) smoothly from the background color. I have a background color white or transparent, and I want to make appear a background image with its ...
Leandro's user avatar
  • 41
-1 votes
1 answer
38 views

How can I change the background in a free boostrap template?

This boostrap css code about background image. background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' ...
aycelenozdemir's user avatar
-1 votes
1 answer
1k views

How to Animate a Gradient Background that includes all html colors using css

I have an HTML box, where a gradient background color animates. Gradient background includes 3 colors now. But I want to include all available colors. How can we do that? This is how I am doing right ...
mrcoder's user avatar
  • 362
0 votes
0 answers
105 views

jquery tablesorter with condition

I try to use tablesorter in jquery,if i click one column head, all the rows with the background color (e.g. red)on this column come all up,other fall behind. if i click another column head, all the ...
Rabbit's user avatar
  • 3
0 votes
0 answers
141 views

moving background image back to initial position with jquery

I'm trying to get a piece of code to work the way I would like it, so far i have a script moving background image (.item) according to mouse moves. The problem is that I need to have it back into ...
So SWXI's user avatar
  • 11
0 votes
1 answer
42 views

Playing background sound across pages

I hope you are doing fine? I'm trying to play different audio tags depending on user navigation. The code is working as expected on Android phones and tablets and all modern browsers on a computer but ...
Funambulum's user avatar
0 votes
2 answers
42 views

Better way to change between several background images with jQuery

Is there a better way to write this function than just repeat it for each image change option? I have a series of buttons which change the background image of a group of div's with the same class name,...
dragon_sa's user avatar
0 votes
2 answers
188 views

Adding a background gradient to existing background image with jquery

I am stuck with a problem that has me baffled for hours now. Here is the gist of it: I have a div that has a background image already set and I want to add a background gradient with a background ...
Iulian N's user avatar
1 vote
1 answer
34 views

Get the background of another elements when clicked toggle navigation bar

I'm newbie and I get some problems with the background when I clicked the toggle navigation bar. I have no ideal how i can get this background. That means when you clicked the button hamburger, the ...
Cattttt's user avatar
  • 51
1 vote
0 answers
98 views

I would like to select a background color for another page

in my html i have: <form method = "post" action = "creablog.php"> <p id = "titolosfondo"> Sfondo </p> <select id = "sfondo" name = &...
ymod's user avatar
  • 11
0 votes
1 answer
109 views

How to get background height after window resize with jQuery?

How can I get the background height after the window resized? div { background-image: url(/images/somebackground.jpg); background-size: 100% 90%; background-repeat: no-repeat; ...
WebSS's user avatar
  • 63

15 30 50 per page
1
2 3 4 5
44