- Create a blue background and centralize your drop
- Add some opacity and border of almost same shade.
- Adding a border of approximately the same color will not be visible at a glance, but it will add some sort of volume to your drop
- Add a layer using ::before pseudo-element
- Height, width and border-radius should be same as drop
- Background color should be same as body color
- Add some dark blue shadow in order to give it a 3d look
- Extend the same shadow
- Now add four layers of inset shadows
1. Blue inset shadow at right side 2. Blue inset shadow on top 3. White inset shadow at bottom-left 4. White inset shadow at bottom-left with large intensity
- CSS code for shadows mentioned in above tweet ππ»
- Now will create a small white reflection using ::after pseudo-element.
- Create a blob and align it above the white intensity as shown in the given image below
Final Step
- Create another small white reflection using box-shadow of ::after-element
- Reduce opacity
Great! This is pretty much it. Wasn't it easy and simple?
Share a screenshot of your creation below. Try it with different color scheme. Let's see how it goes π
You must have used the border-radius property in CSS, but here is complete guide covering some of the hidden concept of it
π§΅ππ»
The border-radius CSS property rounds the corners of an element's outer border edge. You can set a border-radius in order to make round edges of sharp cornered box
Well we know that every element is a box in webpage. Consider that box clipped using 8 clips ππ»
We can adjust that clips in order to make distorted shapes
Do you have images on your webpage / website? You probably have.
Here are 5 cool things related to images on webpage, that I think you are not familiar with
π§΅ππ»
1οΈβ£ Set image scaling algorithm of user agent
The `image-rendering` CSS property sets an image scaling algorithm
When you specifies dimensions of image other than its natural size then the image will be up/downscaled by user agent using the algorithm specified by image-rendering
For example: "crisp-edges"
The image must be scaled with an algorithm that preserves contrast and edges in the image, and which does not smooth colors or introduce blur to the image in the process.
If you start with the right course then the process becomes a little easier
I found some amazing YouTube videos and courses that will help you start your Web Development journey
π§΅ππ»
HTML and CSS
- A great way to arouse your web dev journey with Gary's (@designcoursecom) course on YouTube
π
JavaScript
- Although it's impossible to learn JavaScript in 2 hours but JavaScript mastery is one the best YouTube chanel for JavaScript. This 2 hours long crash course will help you start your journey and gives you quick overview.