JonJonJon Posted February 3, 2022 Share Posted February 3, 2022 Site URL: https://jonpxl.com I'm trying to make an image have a blur gradient across it, so that text is more legible. I prefer to do this in CSS as the image and text layout is a little different depending on different devices used. I can't seem to get it to work as a gradient. Also is there a way to have the blur go to the edges & corners? I am also using a colour gradient. password: dolphin267 My current code: #intro .Index-page-image { filter: blur(14px); } #intro .Index-page-image:after { background: linear-gradient( to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 40%) !important; filter: opacity(1); content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } Link to comment
tuanphan Posted February 7, 2022 Share Posted February 7, 2022 Hi, use this new code section#intro:after { background: linear-gradient( to right, rgba(0,0,0,.5) 0%, rgba(0,0,0,0) 40%) !important; filter: opacity(1); content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
JonJonJon Posted February 7, 2022 Author Share Posted February 7, 2022 @tuanphanthanks. but do you know how to create the gradient blur portion? That's the part I am struggling with. thanks for any assistance Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment