105 questions
0
votes
1
answer
102
views
How can I add a scale animation to a background-attachment:fixed element?
I am trying to make an element that :
has the background-attachment: fixed attribute, so when you scroll it does not scroll with you ;
have a beautifull scale-out animation that runs once.
My ...
0
votes
1
answer
73
views
Is there a way to make a background image that's exclusively to Safari?
My Tumblr blog is now using a background image with background-attachment:fixedIt works perfectly on Windows and Android However, according to caniuse.com (link to article) this property works for ...
0
votes
0
answers
2k
views
Fix for `background-attachment: fixed` + `background-size: cover` on iOS
A background-image stretches the height of the div rather than being contained to the dimensions of the viewport. Testing on desktop the desired effect is achieved but on iPhone X (Safari and Chrome) ...
0
votes
1
answer
155
views
Honeycomb css design with background-attachment: fixed and css transform issue - image not spanning across hexagons
I have a honeycomb css design and i am struggling to get the background image to span across all hexagons. At the moment the image repeats in each hexagon. I think there is a conflict between the css ...
0
votes
0
answers
30
views
why does background-attachment works differently in body and div [duplicate]
I created a background and attached to body it is scrolling to the right fine. but when I attach to a div it doesn't seem to be attached. the scrolling happens in the body.
Here is the link when ...
0
votes
1
answer
85
views
How do I make local attached repeating linear gradients
I've recently been trying to make a text area that uses a repeating linear gradient to separate lines, however, the gradient does not attach to the textbox when I'm scrolling.
Am I doing something ...
0
votes
0
answers
72
views
How does background-attachment work with its children?
I was looking for how to generate the new glass morphism effect with CSS3. Afortunatelly I found This article that make it happens. In the first method the article makes something like this (I wrote ...
0
votes
2
answers
767
views
background attachment:fixed how to make the image "not full screen"?
Hey I am trying the one thing my friend want me to do but I am still new in this. I was trying to do the parallax effect on image with js but it just didn't work so I settled with the backgroud ...
0
votes
1
answer
111
views
Using jQuery to change element background image does not work with Fixed background attachment
I got a weird issue here, basically I just want to make a slider, each slider-item has inner child named slider-background, it contains data-src custom attribute of image's url / path that then I use ...
1
vote
2
answers
295
views
background-attachment: local; CSS style not working in Firefox
I am trying to show a line number for every line. My code working properly in Chrome but in Firefox it's not working because of background-attachment: local; not accepting in Firefox. I want it should ...
1
vote
2
answers
5k
views
background-attachment: fixed in Firefox or Edge versus Chrome
body {
height: 150vh;
}
#hero {
position: relative;
border: none;
height: 100vh;
}
#hero .hero-image {
background-image: url(https://images.unsplash.com/photo-...
1
vote
0
answers
959
views
Share background image between elements using CSS or TailwindCSS
I'm trying to make something like this on Tailwind or pure css...
So basically we could share some background between elements with some css similar like this (we use this class on each element):
...
1
vote
0
answers
202
views
CSS background-attachment local and position bottom problem with Edge/IE
I'm trying to show a gradient at the end of a scrolling content by using a linear gradient with background-position: bottom and background-attachment: local. This works great in all browsers except IE ...
3
votes
2
answers
907
views
CSS background-image Not Fixed
I'm trying to do a simple background-image that will stay in place when I scroll down the page. The background image won't stay in place. I've set the background-attachment to fixed.
See: www....
0
votes
1
answer
45
views
background-attachment: Fixed, moves position between Chrome versions
I've got a full width section of a site that is the same colour of the logo. So I have used background-attatchment: fixed to keep a second 'faux' (as in its just for the design) logo over the top of ...
0
votes
1
answer
917
views
background-attachment fixed and container width
I'm sorry if my question is stupid, but I can't understand what "a picture is fixed with regard to the viewport" means and how it's connected to the following thing:
Suppose that we have a html ...
0
votes
2
answers
216
views
Why is my background repeating?
Im learning how to build a website, but I have some trouble because of the background.
The background is repeating when I add content to the div container. Why is that, and how can I fix it?
.body {
...
0
votes
1
answer
1k
views
Background Fixed on Mobile Devices
I wanted to do flowing content over fixed background. It works perfectly on desktop. On iOS also works but not perfect. Main problem is on android phones. It isn't covering content. If you want edit ...
1
vote
1
answer
4k
views
Background-attachment:fixed equivalent for IMGs
I'm trying to find a CSS-only equivalent effect of background-attachment:fixed that works with inline IMG elements. I've tried position:fixed, but removing the image from the document flow will not ...
2
votes
1
answer
2k
views
background-attachment: fixed not working in firefox
I have the following site:
https://dasproject.netlify.com/lisa/
edit: doesn’t have the problem any more
When opening it in Chrome, the cover-image is fixed, as it should be, but when opening in ...
0
votes
1
answer
2k
views
CSS multiple fixed background psuedo elements
I am trying to create a parallax scrolling effect using only CSS and with no third party libraries. Using background-attachment: fixed I was able to achieve the effect I wanted on multiple full-width ...
2
votes
3
answers
12k
views
Center Background Image of a Bootstrap Column
I want put the background image of my second Bootstrap column in the center of the column. However, right now, it is in the center of the whole view and not at the center of the column.
Here are my ...
3
votes
3
answers
24k
views
Background-Attachment: Fixed Doesn't Work On iOS
I'm trying to find a solution to the problem I'm having with fixed backgrounds on iOS devices. I would rather not have to redesign everything for this website, and I'm hoping that some CSS changes can ...
-1
votes
1
answer
55
views
One background attachment image is not showing
So i have this about page with multiple background attachment pics. All work besides one. I went through the code and cant seem to find out why one is not showing. Anyone got time to check the view ...
1
vote
4
answers
2k
views
Choppy JavaScript Animation of background-position-y
So the actual problem I'm having is that I want a fixed background image effect while keeping the background image wide enough to fill a container. Unfortunately, the CSS way, using background-...