diff --git a/_includes/footer.html b/_includes/footer.html
index c2bfdb1..a45cfdc 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,5 +1,5 @@
\ No newline at end of file
diff --git a/_posts/2025/01/2025-01-01-gradients-as-a-css-mask.md b/_posts/2025/01/2025-01-01-gradients-as-a-css-mask.md
new file mode 100644
index 0000000..3d8728a
--- /dev/null
+++ b/_posts/2025/01/2025-01-01-gradients-as-a-css-mask.md
@@ -0,0 +1,171 @@
+---
+author: "Jasmine Hirpara"
+title: "Gradients as a CSS mask"
+excerpt: "How to use gradients as a mask in CSS to create a reveal effect."
+tags: [css, css gradient, css mask]
+permalink: /posts/gradients-as-a-css-mask
+---
+
+
+[CSS masking](https://www.w3.org/TR/css-masking-1/) has been around for a while now. You can use it via the `mask` property in CSS. You can define an SVG element or an image as a mask. Since we can use an image as a mask, i thought why not try a gradient as a mask and see where i land. In one of my [previous posts](/posts/gradient-loader), i have briefed about how to create a gradient using CSS.
+
+## How masking works 🤔
+
+To be frank, masking is a game of black and white. In layman terms, mask is a layer that is applied on top of the element. The part of the element that falls under the white (or brighter) pixels of the mask layer, is revealed or visible. We can use an image or css gradient as a mask. In case of the image mask, the luminance of the pixel decides how much the element is revealed. Lets see how we can use a gradient as a mask.
+
+i have used a sample image that i will mask using a gradient.
+
+## Using a gradient as a mask
+
+Lets start with a simple gradient with 2 colors. For simplicity, i will use black and white colors.
+
+```css
+.gradient-mask {
+ mask-image: linear-gradient(to right, black, white);
+}
+```
+
+
+
+Woops!! What happened here? Nothing!! Thats because we need to specify the mask mode. Since we are using black and white colors, we need to use `luminance` mode.
+
+```css
+.gradient-mask {
+ mask-image: linear-gradient(to right, black, white);
+ mask-mode: luminance;
+}
+```
+
+
+
+As you can see, the image is visible gradually from left to right. In other words, when the gradient is transitioning to white (towards right), the image is revealed. Lets see what happens when i use one more color in the gradient.
+
+```css
+.gradient-mask {
+ mask-image: linear-gradient(to right, black, white, black);
+ mask-mode: luminance;
+}
+```
+
+
+