Skip to content

Commit 7125ef7

Browse files
committed
2 more patterns
1 parent 9409a25 commit 7125ef7

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

index.html

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
16471647
</section>
16481648
<section id="g96">
16491649
<style>#g96 {
1650-
--s: 90px;
1650+
--s: 90px; /* control the size */
16511651

16521652
--_s:0 0/var(--s) var(--s);
16531653
background:
@@ -1656,6 +1656,41 @@ <h1><span>C</span><span>S</span><span>S</span> Pattern</h1>
16561656
repeating-conic-gradient(#FF3D7F 0 25%,#34DFD2 0 50%)
16571657
0 0/calc(2*var(--s)) calc(2*var(--s));
16581658
}
1659+
</style><button>Copy the CSS</button>
1660+
</section>
1661+
<section id="g97">
1662+
<style>#g97 {
1663+
--s: 6px; /* control the size */
1664+
1665+
--g:#0000 66%,#3B2D38 68% 98%,#0000;
1666+
background:
1667+
radial-gradient(30% 30% at 0% 30%,var(--g))
1668+
var(--s) calc(9*var(--s)),
1669+
radial-gradient(30% 30% at 100% 30%,var(--g))
1670+
var(--s) calc(-1*var(--s)),
1671+
radial-gradient(30% 30% at 30% 100%,var(--g))
1672+
calc(10*var(--s)) 0,
1673+
radial-gradient(30% 30% at 30% 0% ,var(--g))
1674+
#F02475;
1675+
background-size: calc(20*var(--s)) calc(20*var(--s));
1676+
}
1677+
</style><button>Copy the CSS</button>
1678+
</section>
1679+
<section id="g98">
1680+
<style>#g98 {
1681+
--s: 150px; /* control the size */
1682+
1683+
--c:#0000,#5E9FA3 2deg 133deg,#0000 135deg;
1684+
--g1:conic-gradient(from -112.5deg at 25% 25%,var(--c));
1685+
--g2:conic-gradient(from -22.5deg at 75% 25%,var(--c));
1686+
--g3:conic-gradient(from 67.5deg at 75% 75%,var(--c));
1687+
--g4:conic-gradient(from 157.5deg at 25% 75%,var(--c));
1688+
background:
1689+
var(--g1),var(--g1),var(--g2),var(--g2),
1690+
var(--g3),var(--g3),var(--g4),var(--g4) #DCD1B4;
1691+
background-position: 0 0,calc(var(--s)/2) calc(var(--s)/2);
1692+
background-size: var(--s) var(--s);
1693+
}
16591694
</style><button>Copy the CSS</button>
16601695
</section>
16611696
<a target="_blank" href="https://github.com/Afif13/CSS-Pattern" class="credit">

0 commit comments

Comments
 (0)