Sebastian-D Posted July 18 Share Posted July 18 (edited) I'm interested in replicating the opacity gradient effect applied to the phone in the attached image on my website. As you can see, the top half of the phone is completely opaque, with a rapid fade to transparent at the halfway point. The website in question is https://www.opal.so/ Is this possible to apply in Squarespace directly? If not, I would be grateful to learn how would I replicate it using external tools. Edited July 19 by Sebastian-D Added website Link to comment
tuanphan Posted July 19 Share Posted July 19 Do you have a link to example site in your screenshot? We can check easier Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Sebastian-D Posted July 19 Author Share Posted July 19 7 hours ago, tuanphan said: Do you have a link to example site in your screenshot? We can check easier https://www.opal.so/ Link to comment
Solution JessicaM Posted July 19 Solution Share Posted July 19 @Sebastian-D You can always do it in a graphics program, like Photoshop or Figma. They've used code to do it on their site. This is the code they've used (replace 'yourimageblock' with your own) - YOURIMAGEBLOCK { -webkit-mask: radial-gradient(78.47% 67.69% at 50.07% 32.31%,#000 0%,#000 49.96%,rgba(0,0,0,.7) 69.77%,rgba(0,0,0,.12) 85.07%,transparent 100%); } Jessica Miller | Squarespace Website Designer https://www.jessicamiller.work jessica@jessicamiller.work Search the blog and get Squarespace tips to your inbox https://www.jessicamiller.work/blog Want to pick my brain or get help? Book a free 15 minute call. If my post solved your problem, please mark it as the solution - thanks! Link to comment
Sebastian-D Posted July 20 Author Share Posted July 20 On 7/19/2024 at 5:00 PM, JessicaM said: @Sebastian-D You can always do it in a graphics program, like Photoshop or Figma. They've used code to do it on their site. This is the code they've used (replace 'yourimageblock' with your own) - YOURIMAGEBLOCK { -webkit-mask: radial-gradient(78.47% 67.69% at 50.07% 32.31%,#000 0%,#000 49.96%,rgba(0,0,0,.7) 69.77%,rgba(0,0,0,.12) 85.07%,transparent 100%); } Thanks so much! JessicaM 1 Link to comment
JessicaM Posted July 20 Share Posted July 20 You bet! Jessica Miller | Squarespace Website Designer https://www.jessicamiller.work jessica@jessicamiller.work Search the blog and get Squarespace tips to your inbox https://www.jessicamiller.work/blog Want to pick my brain or get help? Book a free 15 minute call. If my post solved your problem, please mark it as the solution - thanks! 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