Skip to content

Commit b1f75af

Browse files
committed
another pattern
1 parent 6ce4d9b commit b1f75af

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

index.html

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
2828
<p>powered by CSS gradients</p>
2929
<h2>the biggest collection of background Patterns</h2>
30-
<p>Explore 139 CSS-only patterns made with CSS gradients and optimized with CSS variables.<br> I also have <a href="https://animated.css-pattern.com/" target="_blank">a collection of animated CSS Patterns</a></p>
30+
<p>Explore 140 CSS-only patterns made with CSS gradients and optimized with CSS variables.<br> I also have <a href="https://animated.css-pattern.com/" target="_blank">a collection of animated CSS Patterns</a></p>
3131
</header>
3232
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
3333
<div class="adaptive" data-ea-publisher="css-challengescom" id="css-pattern" data-ea-type="text" data-ea-style="fixedfooter"></div>
@@ -2377,7 +2377,7 @@ <h2>the biggest collection of background Patterns</h2>
23772377
</section>
23782378
<section id="g138">
23792379
<style>#g138 {
2380-
--s: 46px; /* control the size */
2380+
--s: 50px; /* control the size */
23812381

23822382
--c:#9D2053 99%,#0000 101%;
23832383
background:
@@ -2403,6 +2403,25 @@ <h2>the biggest collection of background Patterns</h2>
24032403
linear-gradient( 45deg,var(--g)) var(--p),
24042404
linear-gradient(-45deg,var(--g)) var(--p) #CE1836;
24052405
}
2406+
</style><button>Copy the CSS</button>
2407+
</section>
2408+
<section id="g140">
2409+
<style>#g140 {
2410+
--s: 50px; /* control the size */
2411+
--c1:#F2F26F;
2412+
--c2:#A0C55F;
2413+
2414+
--c:#0000 79%,var(--c1) 81% 99%,var(--c2) 101% 150%,#0000 0;
2415+
background:
2416+
radial-gradient(var(--s) at 100% 100%,var(--c)),
2417+
radial-gradient(var(--s) at 100% 0 ,var(--c)) calc(3*var(--s)/2) 0,
2418+
radial-gradient(var(--s) at 0 100%,var(--c)) calc( var(--s)/2) 0,
2419+
radial-gradient(var(--s) at 0 0 ,var(--c)) calc(2*var(--s)) 0,
2420+
repeating-linear-gradient(90deg,
2421+
var(--c1) 0 calc(20%/3),#0000 0 calc(70%/3),
2422+
var(--c1) 0 30%,#0000 0 50%) calc(var(--s)/-5) 0 var(--c2);
2423+
background-size: calc(3*var(--s)) calc(5*var(--s)/2);
2424+
}
24062425
</style><button>Copy the CSS</button>
24072426
</section>
24082427
<section>

0 commit comments

Comments
 (0)