You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/web/css/compositing_and_blending/index.md
+3-60Lines changed: 3 additions & 60 deletions
Original file line number
Diff line number
Diff line change
@@ -23,66 +23,9 @@ The properties in this CSS module can be used to define the blending mode that s
23
23
24
24
In this example, each box has a border, two striped background images, and a solid color background. The common background for all the boxes contains a pattern of circles. The three boxes in the second row are set to blend with the background of the container.
25
25
26
-
```html hidden
27
-
<section>
28
-
<div><span>Normal, with no blending</span></div>
29
-
<div><span>Multiplies colors</span></div>
30
-
<div><span>Multiplies based on background color</span></div>
31
-
<div>Normal, with no blending</div>
32
-
<div>Multiplies colors</div>
33
-
<div>Multiplies based on background color</div>
34
-
</section>
35
-
```
36
-
37
-
```css hidden
38
-
/* creates a div with two offset striped background images and a background color. */
Notice how the background, border, and the content are all impacted as a result of the blending. To see the code for this sample, [view the source on Github](https://github.com/mdn/content/blob/main/files/en-us/web/css/compositing_and_blending/index.md?plain=1).
Notice how the background, border, and the content are all impacted as a result of the blending. To see the code for this sample, [view the source on Github](https://github.com/mdn/css-examples/blob/main/modules/compositing.html).
Copy file name to clipboardExpand all lines: files/en-us/web/css/css_animations/index.md
+3-251Lines changed: 3 additions & 251 deletions
Original file line number
Diff line number
Diff line change
@@ -21,259 +21,11 @@ The animations CSS module lets you animate the values of CSS properties, such as
21
21
22
22
To view the animation in the box below, click the checkbox 'Play the animation' or hover the cursor over the box. When the animating is active, the cloud at the top changes shape, snowflakes fall, and the snow level at the bottom rises. To pause the animation, uncheck the checkbox or move your cursor away from the box.
23
23
24
-
```html hidden
25
-
<inputtype="checkbox"id="animate"aria-label="Toggle the play state of the animation"><!-- See aria-label: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-label -->
This sample animation uses {{cssxref("animation-iteration-count")}} to make the flakes fall repeatedly, {{cssxref("animation-direction")}} to make the cloud move back and forth, {{cssxref("animation-fill-mode")}} to raise the snow level in response to the cloud movement, and {{cssxref("animation-play-state")}} to pause the animation.
This sample animation uses {{cssxref("animation-iteration-count")}} to make the flakes fall repeatedly, {{cssxref("animation-direction")}} to make the cloud move back and forth, {{cssxref("animation-fill-mode")}} to raise the snow level in response to the cloud movement, and {{cssxref("animation-play-state")}} to pause the animation. To see the code for this animation, [view the source on Github](https://github.com/mdn/content/blob/main/files/en-us/web/css/css_animations/index.md?plain=1).
28
+
To see the code for this animation, [view the source on Github](https://github.com/mdn/css-examples/blob/main/modules/animation.html).
Copy file name to clipboardExpand all lines: files/en-us/web/css/css_backgrounds_and_borders/index.md
+5-44Lines changed: 5 additions & 44 deletions
Original file line number
Diff line number
Diff line change
@@ -25,50 +25,11 @@ The properties in this module also let you define whether cells inside a {{HTMLE
25
25
26
26
This sample of borders, backgrounds, and box shadows consists of centered background images made of linear and radial gradients. A series of box shadows make the border appear to "pop". The element on the left has a border image set. The element on the right has a rounded dotted border.
27
27
28
-
<!-- intro example -->
29
-
30
-
```html hidden
31
-
<article>
32
-
<div></div>
33
-
<div></div>
34
-
</article>
35
-
```
36
-
37
-
```css hidden
38
-
article {display: flex; gap: 10px;}
39
-
div {
40
-
color: #58ADE3;
41
-
height: 320px;
42
-
width: 240px;
43
-
padding: 20px;
44
-
margin: 10px;
45
-
border: dotted15px; /* defaults to `currentcolor` */
The background images are defined with {{cssxref("background-image")}}. The images are centered with {{cssxref("background-position")}}. Different values of the {{cssxref("background-clip")}} property for the multiple background images are used to make the background images stay within the content box. The background color gets clipped to the padding box preventing the background from appearing through the transparent sections for the {{cssxref("border-image")}} and the {{cssxref("border-style", "dotted")}} {{cssxref("border")}}. The rounded corners in the element on the right are created using the {{cssxref("border-radius")}} property. A single {{cssxref("box-shadow")}} declaration is used to set all the shadows, both inset and outset. To see the code for this sample, [view the source on Github](https://github.com/mdn/content/blob/main/files/en-us/web/css/compositing_and_blending/index.md?plain=1).
The background images are defined with {{cssxref("background-image")}}. The images are centered with {{cssxref("background-position")}}. Different values of the {{cssxref("background-clip")}} property for the multiple background images are used to make the background images stay within the content box. The background color gets clipped to the padding box preventing the background from appearing through the transparent sections for the {{cssxref("border-image")}} and the {{cssxref("border-style", "dotted")}} {{cssxref("border")}}. The rounded corners in the element on the right are created using the {{cssxref("border-radius")}} property. A single {{cssxref("box-shadow")}} declaration is used to set all the shadows, both inset and outset.
31
+
32
+
To see the code for this sample, [view the source on Github](https://github.com/mdn/css-examples/blob/main/modules/backgrounds.html).
0 commit comments