From 97065b2e68dd8768dc1ea092c893c57ebe205026 Mon Sep 17 00:00:00 2001
From: Peter Bengtsson Пример
-<div id="div"></div>
<select id="select">
<option>normal</option>
<option>multiply</option>
@@ -54,14 +53,14 @@ background-blend-mode: unset;
<option>luminosity</option>
</select>
-#div {
+
#div {
width: 300px;
height: 300px;
background: url('https://mdn.mozillademos.org/files/8543/br.png'),url('https://mdn.mozillademos.org/files/8545/tr.png');
background-blend-mode: screen;
}
-document.getElementById("select").onchange = function(event) {
+
document.getElementById("select").onchange = function(event) {
document.getElementById("div").style.backgroundBlendMode = document.getElementById("select").selectedOptions[0].innerHTML;
}
console.log(document.getElementById('div'));
diff --git a/files/ru/web/css/blend-mode/index.html b/files/ru/web/css/blend-mode/index.html
index 382af5dae0..40125081d4 100644
--- a/files/ru/web/css/blend-mode/index.html
+++ b/files/ru/web/css/blend-mode/index.html
@@ -24,9 +24,8 @@ translation_of: Web/CSS/blend-mode
The effect is similar to two opaque pieces of paper overlapping.
<div id="div"></div>-
#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -44,9 +43,8 @@ translation_of: Web/CSS/blend-mode The effect is similar to two images printed on transparent film overlapping.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -64,9 +62,8 @@ translation_of: Web/CSS/blend-mode The effect is similar to two images shone onto a projection screen.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -81,9 +78,8 @@ translation_of: Web/CSS/blend-modeThe final color is the result of multiply
if the bottom color is darker, orscreen
if the bottom color is lighter.
This blend mode is equivalent tohard-light
but with the layers swapped.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -99,9 +95,8 @@ translation_of: Web/CSS/blend-modeThe final color is a color composed of the darkest values per color channel.
-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -117,9 +112,8 @@ translation_of: Web/CSS/blend-modeThe final color is a color composed of the lightest values per color channel.
-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -137,9 +131,8 @@ translation_of: Web/CSS/blend-mode This blend mode is similar to screen, but the foreground need only be as light as the inverse of the backdrop to reach a fully lit color.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -157,9 +150,8 @@ translation_of: Web/CSS/blend-mode This blend mode is similar to multiply, but the foreground need only be as dark as the inverse of the backdrop to make the final image black.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -177,9 +169,8 @@ translation_of: Web/CSS/blend-mode The effect is similar to shining a harsh spotlight on the backdrop.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -197,9 +188,8 @@ translation_of: Web/CSS/blend-mode The effect is similar to shining a diffused spotlight on the backdrop.
-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -216,9 +206,8 @@ translation_of: Web/CSS/blend-mode A black layer has no effect, while a white layer inverts the other layer's color.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -235,9 +224,8 @@ translation_of: Web/CSS/blend-mode As withdifference
, a black layer has no effect, while a white layer inverts the other layer's color.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -253,9 +241,8 @@ translation_of: Web/CSS/blend-modeThe final color has the hue of the top color, while using the saturation and luminosity of the bottom color.
-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -272,9 +259,8 @@ translation_of: Web/CSS/blend-mode A pure gray backdrop, having no saturation, will have no effect.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -291,9 +277,8 @@ translation_of: Web/CSS/blend-mode The effect preserves gray levels and can be used to colorize the foreground.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), @@ -310,9 +295,8 @@ translation_of: Web/CSS/blend-mode This blend mode is equivalent to color, but with the layers swapped.-<div id="div"></div>-#div { +#div { width: 300px; height: 300px; background: url('https://mdn.mozillademos.org/files/8543/br.png'), diff --git a/files/ru/web/css/css_background_and_borders/border-image_generator/index.html b/files/ru/web/css/css_background_and_borders/border-image_generator/index.html index 750bbe96f3..8e798f9292 100644 --- a/files/ru/web/css/css_background_and_borders/border-image_generator/index.html +++ b/files/ru/web/css/css_background_and_borders/border-image_generator/index.html @@ -8,7 +8,7 @@ translation_of: Web/CSS/CSS_Background_and_Borders/Border-image_generator ---Этот инструмент можно использовать, чтобы генерировать CSS3 значения {{cssxref("border-image")}}.
-+Border Image Generator
HTML Content
diff --git a/files/ru/web/css/css_background_and_borders/border-radius_generator/index.html b/files/ru/web/css/css_background_and_borders/border-radius_generator/index.html index 0dbb391c06..d8aafac807 100644 --- a/files/ru/web/css/css_background_and_borders/border-radius_generator/index.html +++ b/files/ru/web/css/css_background_and_borders/border-radius_generator/index.html @@ -6,7 +6,7 @@ original_slug: Web/CSS/CSS_Background_and_Borders/Border-radius_генерато ---С помощью этого инструмента вы можете создать CSS3 {{cssxref("border-radius")}} эффекты.
-+border-radius
HTML Content
diff --git a/files/ru/web/css/css_background_and_borders/box-shadow_generator/index.html b/files/ru/web/css/css_background_and_borders/box-shadow_generator/index.html index a26dbc165d..4530073ad2 100644 --- a/files/ru/web/css/css_background_and_borders/box-shadow_generator/index.html +++ b/files/ru/web/css/css_background_and_borders/box-shadow_generator/index.html @@ -10,7 +10,7 @@ original_slug: Web/CSS/CSS_Box_Model/Box-shadow_generator ---Этот инструмент позволяет вам создавать CSS {{cssxref("box-shadow")}} эффекты, добавлять тени вашим элементам.
-+Генератор box-shadow generator
HTML Content
diff --git a/files/ru/web/css/css_colors/color_picker_tool/index.html b/files/ru/web/css/css_colors/color_picker_tool/index.html index 105c608af3..499aa260fd 100644 --- a/files/ru/web/css/css_colors/color_picker_tool/index.html +++ b/files/ru/web/css/css_colors/color_picker_tool/index.html @@ -6,7 +6,7 @@ tags: - инструменты translation_of: Web/CSS/CSS_Colors/Color_picker_tool --- -+ColorPicker tool
HTML Content
diff --git a/files/ru/web/css/css_positioning/understanding_z_index/stacking_without_z-index/index.html b/files/ru/web/css/css_positioning/understanding_z_index/stacking_without_z-index/index.html index 4ed7e1686d..7ab14098a2 100644 --- a/files/ru/web/css/css_positioning/understanding_z_index/stacking_without_z-index/index.html +++ b/files/ru/web/css/css_positioning/understanding_z_index/stacking_without_z-index/index.html @@ -127,7 +127,7 @@ original_slug: Web/Guide/CSS/Understanding_z_index/Stacking_without_z-indexThe stacking context : Notes on the stacking context Stacking context example 1 : 2-level HTML hierarchy, z-index on the last level Stacking context example 2 : 2-level HTML hierarchy, z-index on all levels -Stacking context example 3 : 3-level HTML hierarchy, z-index on the second level +Stacking context example 3 : 3-level HTML hierarchy, z-index on the second level diff --git a/files/ru/web/css/css_transitions/using_css_transitions/index.html b/files/ru/web/css/css_transitions/using_css_transitions/index.html index 2e75865c4d..fe9483eea9 100644 --- a/files/ru/web/css/css_transitions/using_css_transitions/index.html +++ b/files/ru/web/css/css_transitions/using_css_transitions/index.html @@ -73,7 +73,7 @@ translation_of: Web/CSS/CSS_Transitions/Using_CSS_transitions-
transition-duration: 0.5s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -138,7 +138,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 1s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -203,7 +203,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 2s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -268,7 +268,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 4s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -337,7 +337,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-timing-function: ease
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -400,7 +400,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-timing-function: linear
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -463,7 +463,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-timing-function: step-end
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -526,7 +526,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-timing-function: steps(4, end)
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -593,7 +593,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-delay: 0.5s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -665,7 +665,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-delay: 1s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -737,7 +737,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-delay: 2s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -809,7 +809,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-delay: 4s
+<div class="parent"> <div class="box">Lorem</div> </div> diff --git a/files/ru/web/css/filter/index.html b/files/ru/web/css/filter/index.html index ba55a20e4a..63fa97d156 100644 --- a/files/ru/web/css/filter/index.html +++ b/files/ru/web/css/filter/index.html @@ -95,7 +95,7 @@ img {filter: blur(5px)-+<table class="standard-table"> <thead> <tr> @@ -190,7 +190,7 @@ table.standard-table td { </filter> </svg>-+<table class="standard-table"> <thead> <tr> @@ -286,7 +286,7 @@ table.standard-table td { </svg>-+<table class="standard-table"> <thead> <tr> @@ -397,7 +397,7 @@ table.standard-table td { </svg>-+<table class="standard-table"> <thead> <tr> @@ -515,7 +515,7 @@ table.standard-table td {filter: grayscale(100%)-+<table class="standard-table"> <thead> <tr> @@ -599,7 +599,7 @@ table.standard-table td {filter: hue-rotate(90deg)-+<table class="standard-table"> <thead> <tr> @@ -686,7 +686,7 @@ table.standard-table td {filter: invert(100%)-+<table class="standard-table"> <thead> <tr> @@ -770,7 +770,7 @@ table.standard-table td {filter: opacity(50%)-+<table class="standard-table"> <thead> <tr> @@ -852,7 +852,7 @@ table.standard-table td {filter: saturate(200%)-+<table class="standard-table"> <thead> <tr> @@ -933,7 +933,7 @@ table.standard-table td {filter: sepia(100%)-+<table class="standard-table"> <thead> <tr> @@ -1017,7 +1017,7 @@ table.standard-table td {filter: contrast(175%) brightness(103%)-+<table class="standard-table"> <thead> <tr> diff --git a/files/ru/web/css/transition-duration/index.html b/files/ru/web/css/transition-duration/index.html index f40f16a273..7389a9a6f0 100644 --- a/files/ru/web/css/transition-duration/index.html +++ b/files/ru/web/css/transition-duration/index.html @@ -44,7 +44,7 @@ transition-duration: unset;-
transition-duration: 0.5s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -109,7 +109,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 1s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -174,7 +174,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 2s
+<div class="parent"> <div class="box">Lorem</div> </div> @@ -239,7 +239,7 @@ var intervalID = window.setInterval(updateTransition, 7000);-
transition-duration: 4s
+<div class="parent"> <div class="box">Lorem</div> </div> diff --git a/files/ru/web/css/using_css_custom_properties/index.html b/files/ru/web/css/using_css_custom_properties/index.html index db7a1674bd..905cbffe8d 100644 --- a/files/ru/web/css/using_css_custom_properties/index.html +++ b/files/ru/web/css/using_css_custom_properties/index.html @@ -138,7 +138,7 @@ translation_of: Web/CSS/Using_CSS_custom_properties-+<div> <div class="one"></div> <div class="two">Text <span class="five">- more text</span></div> -- cgit v1.2.3-54-g00ecf