concoction

Объявление

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » concoction » ХТМЛ и журнал » тексты


тексты

Сообщений 1 страница 13 из 13

1

[html]
<style>
h41 {
  font-size: 100px;
  line-height: 20px;
}

.gradient-text {
  color: transparent;
  background: conic-gradient(
    #D9D7F1 12%,
    #BAABDA 12%, #BAABDA 33%,
    #E7FBBE 33%, #E7FBBE 55%,
    #FFCBCB 55%, #FFCBCB 70%,
    #B5DEFF 70%, #B5DEFF 87%,
    #F7D1BA 87%);
  background-size: 50%;
  background-clip: text; 
  -webkit-background-clip: text;

  animation: expand-rev 0.5s ease forwards;

  cursor: pointer;
}

.gradient-text:hover {
  animation: expand 0.5s ease forwards;
}

@keyframes expand {
  0% {
    background-size: 50%;
    background-position: 0 0;
  }
  20% {
    background-size: 55%;
    background-position: 0 1em;
  }
  100% {
    background-size: 325%;
    background-position: -10em -4em;
  }
}

@keyframes expand-rev {
  0% {
    background-size: 325%;
    background-position: -10em -4em;
  }
  20% {
    background-size: 55%;
    background-position: 0 1em;
  }
  100% {
    background-size: 50%;
    background-position: 0 0;
  }
}
</style>
<h41 class="gradient-text"><br>hello world!<h41>
[/html]

0

2

[html]
<style>
:root { 
  --purple: rgb(123, 31, 162);
  --violet: rgb(103, 58, 183);
  --pink: rgb(244, 143, 177);
}

@keyframes background-pan {
  from {
    background-position: 0% center;
  }
 
  to {
    background-position: -200% center;
  }
}

@keyframes scale {
  from, to {
    transform: scale(0);
  }
 
  50% {
    transform: scale(1);
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
 
  to {
    transform: rotate(180deg);
  }
}

h1 {
  color: white;
  font-family: "Rubik", sans-serif;
  font-size: clamp(2em, 2vw, 4em);
  font-weight: 400;
  margin: 0px;
  padding: 20px;
  text-align: center;
}

h1 > .magic {
  display: inline-block;
  position: relative;
}

h1 > .magic > .magic-star {
  --size: clamp(20px, 1.5vw, 30px);
 
  animation: scale 700ms ease forwards;
  display: block;
  height: var(--size);
  left: var(--star-left);
  position: absolute;
  top: var(--star-top);
  width: var(--size);
}

h1 > .magic > .magic-star > svg {
  animation: rotate 1000ms linear infinite;
  display: block;
  opacity: 0.7;
}

h1 > .magic > .magic-star > svg > path {
  fill: var(--violet);
}

h1 > .magic > .magic-text {
  animation: background-pan 3s linear infinite;
  background: linear-gradient(
    to right,
    var(--purple),
    var(--violet),
    var(--pink),
    var(--purple)
  );
  background-size: 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* -- YouTube Link Styles -- */

#source-link {
  top: 60px;
}

#source-link > i {
  color: rgb(94, 106, 210);
}

#yt-link { 
  top: 10px;
}

#yt-link > i {
  color: rgb(239, 83, 80);
}

.meta-link {
  align-items: center;
  backdrop-filter: blur(3px);
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer; 
  display: inline-flex;
  gap: 5px;
  left: 10px;
  padding: 10px 20px;
  position: fixed;
  text-decoration: none;
  transition: background-color 600ms, border-color 600ms;
  z-index: 10000;
}

.meta-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.meta-link > i, .meta-link > span {
  height: 20px;
  line-height: 20px;
}

.meta-link > span {
  color: white;
  font-family: "Rubik", sans-serif;
  transition: color 600ms;
}
</style>
<script>
let index = 0,
    interval = 1000;

const rand = (min, max) =>
  Math.floor(Math.random() * (max - min + 1)) + min;

const animate = star => {
  star.style.setProperty("--star-left", `${rand(-10, 100)}%`);
  star.style.setProperty("--star-top", `${rand(-40, 80)}%`);

  star.style.animation = "none";
  star.offsetHeight;
  star.style.animation = "";
}

for(const star of document.getElementsByClassName("magic-star")) {
  setTimeout(() => {
    animate(star);
   
    setInterval(() => animate(star), 1000);
  }, index++ * (interval / 3))
}

/* -- ↓↓↓ If you want the sparkle effect to only occur on hover, replace lines 16 and on with this code ↓↓↓ -- */

// let timeouts = [],
//     intervals = [];

// const magic = document.querySelector(".magic");

// magic.onmouseenter = () => {
//   let index = 1;
 
//   for(const star of document.getElementsByClassName("magic-star")) {
//     timeouts.push(setTimeout(() => { 
//       animate(star);
     
//       intervals.push(setInterval(() => animate(star), 1000));
//     }, index++ * 300));
//   };
// }

// magic.onmouseleave = onMouseLeave = () => {
//   for(const t of timeouts) clearTimeout(t); 
//   for(const i of intervals) clearInterval(i);
 
//   timeouts = [];
//   intervals = [];
// }
</script>
<h1>
  Sometimes I'll start a line of code and I
  <span class="magic">
    <span class="magic-star">
      <svg viewBox="0 0 512 512">
      <path d="M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z" />
      </svg>
    </span>
    <span class="magic-star">
      <svg viewBox="0 0 512 512">
      <path d="M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z" />
      </svg>
    </span>
    <span class="magic-star">
      <svg viewBox="0 0 512 512">
      <path d="M512 255.1c0 11.34-7.406 20.86-18.44 23.64l-171.3 42.78l-42.78 171.1C276.7 504.6 267.2 512 255.9 512s-20.84-7.406-23.62-18.44l-42.66-171.2L18.47 279.6C7.406 276.8 0 267.3 0 255.1c0-11.34 7.406-20.83 18.44-23.61l171.2-42.78l42.78-171.1C235.2 7.406 244.7 0 256 0s20.84 7.406 23.62 18.44l42.78 171.2l171.2 42.78C504.6 235.2 512 244.6 512 255.1z" />
      </svg>
    </span>
    <span class="magic-text">don't even know</span>
  </span>
  where it's going.
</h1>

<a id="source-link" class="meta-link" href="https://linear.app/readme" target="_blank">
  <i class="fa-solid fa-link"></i>
  <span class="roboto-mono">Source</span>
</a>

<a id="yt-link" class="meta-link" href="https://youtu.be/yu0Cm4BqQv0" target="_blank">
  <i class="fa-brands fa-youtube"></i>
  <span>4 min tutorial</span>
</a>
[/html]

0

3

[html]<style>
.logo-type {
  font-family: menlo, monospace;
  font-weight: 600;
  color: #d69b69;
}

  .logo-type:before {
    content: '➜ ~';
    color: #93a1a1;
  }

  .logo-type::first-letter {
    color: #596e75;
  }

  .logo-type:after {
    content: '▉';
    color: #cf3980;
    animation: blink-animation 1s steps(1, start) infinite;
  }

@keyframes blink-animation {
  from, to { opacity: 0 }
  50% { opacity: 1 }
}

</style>
<p class="logo-type">
  terminal.training
</p>

[/html]

0

4

[html]
<style>
html {
display: table;
width: 100%;
height: 100%;
}
body {
display: table-cell;
vertical-align: middle;
text-align: center;
}
h1 {
animation: move 4s linear infinite;
background-image: linear-gradient(to right, #77f, #33d0ff, #25ffbb, #33d0ff, #77f);
background-size: 200% auto;
font: 700 70px/1 Helvetica;
letter-spacing: 1px;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
@keyframes move { to { background-position: 200% center; } }
</style>
<h1>Hello World</h1>

[/html]

0

5

[html]
<style>
body {
height: 306px;
padding: 0px;
}

h1 {
    font-family: times new roman;
    font-size: 46px;
    font-weight: 700;
color: #1a1a2;
    letter-spacing: 3px;
    text-shadow: 0 0 5px #0e0300;
    filter: blur(1px);
    animation: shake 2500ms linear forwards;
animation-iteration-count: infinite;
text-align: center;
}
h1:hover {
letter-spacing: 6px;
transition: 1s;
}
h1:not(:hover) {
letter-spacing: 3px;
transition: 1s;
}

h1 span {
}

h1::before,
h1::after {
}

h1::before {
}

h1::after {
}

@keyframes shake {
    5%, 15%, 25%, 35%, 55%, 65%, 75%, 95% {
        filter: blur(1px);
        transform: translateY(1px) rotate(0deg);
    }

    10%, 30%, 40%, 50%, 70%, 80%, 90% {
        filter: blur(1px);
        transform: translateY(-1px) rotate(0deg);
    }

    20%, 60% {
        filter: blur(0px);
        transform: translate(-1px, 1px) rotate(0deg);
    }

    45%, 85% {
        filter: blur(1px);
        transform: translate(1px, -1px) rotate(0deg);
    }

    100% {
        filter: blur(0px);
        transform: translate(0) rotate(-1deg);
    }
}

@keyframes crack1 {
    0%, 95% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(-51%, -48%);
    }
}

@keyframes crack2 {
    0%, 95% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(-49%, -53%);
    }
}
</style>
<script>
document.getElementsByTagName("h1")[0].style.fontSize = "6vw";
</script>
<h1><span>example</span></h1>

[/html]

0

6

[html]
<style>
h1 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 30vh;
  letter-spacing: 1vw;
  position: absolute;
  top: 15vh;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background:url('https://thumbs.dreamstime.com/b/tropical-flower-pattern-seamless-flowers-blossom-flowers-nature-background-vector-illustration-61142748.jpg');
   background-size: auto 200%;
  background-clip: text;
  text-fill-color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 8s linear infinite; }

  h1:nth-child(2) {
    top: 50vh;
  }

  @keyframes shine {
    from {
      background-position: center 0;
    }
    to {
      background-position: center 200%;
    }
  }

</style>

<h1>HELLO</h1>
<h1>CODEPEN</h1>
[/html]

0

7

[html]
<style>
@import url(https://fonts.googleapis.com/css?family=Raleway:500,700);
.snip1356 {
  font-family: 'Raleway', Arial, sans-serif;
  position: relative;
  overflow: hidden;
  margin: 10px;
  min-width: 230px;
  max-width: 315px;
  width: 100%;
  background: #2980b9;
  text-align: left;
  color: #ffffff;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
  font-size: 16px;
}
.snip1356 * {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-transition: all 0.3s ease-out;
  transition: all 0.3s ease-out;
height: 200px;
}
.snip1356 > img,
.snip1356 .image img {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
  max-width: 100%;
}
.snip1356 > img {
  vertical-align: top;
  position: relative;
  -webkit-filter: blur(5px);
  filter: blur(5px);
  opacity: 0.7;
}
.snip1356 .image {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  overflow: hidden;
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
.snip1356 .image img {
  position: absolute;
  top: 0;
}
.snip1356 figcaption {
  opacity: 0;
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  border-bottom: 2px solid #ffffff;
  padding-bottom: 15px;
  z-index: 1;
}
.snip1356 h3,
.snip1356 p {
  margin: 0;
}
.snip1356 h3 {
  font-weight: 700;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.snip1356 p {
  font-size: 0.9em;
  letter-spacing: 1px;
  font-weight: 400;
}
.snip1356 .read-more {
  display: block;
  opacity: 0;
  -webkit-transform: translateX(-20px);
  transform: translateX(-20px);
  line-height: 48px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 20px;
  color: #ffffff;
  right: 0;
  bottom: 0;
  font-weight: 500;
  position: absolute;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}
.snip1356 a {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  position: absolute;
  z-index: 1;
}
.snip1356:hover .read-more,
.snip1356.hover .read-more,
.snip1356:hover figcaption,
.snip1356.hover figcaption {
  opacity: 1;
  -webkit-transform: translateX(0px);
  transform: translateX(0px);
  -webkit-transition-delay: 0.2s;
  transition-delay: 0.2s;
}
.snip1356:hover .image,
.snip1356.hover .image {
  bottom: 100%;
  -webkit-transition-delay: 0s;
  transition-delay: 0s;
}

</style>
<script>
/* Demo purposes only */
$(".hover").mouseleave(
  function () {
    $(this).removeClass("hover");
  }
);

</script>
<figure class="snip1356 green">
  <img src="https://i.pinimg.com/564x/f4/9e/92/f49e92753f49a1ef1819267448a61a81.jpg" alt="sample47" />
  <div class="image"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample47.jpg" alt="sample47" /></div>
  <figcaption>
    <h3>Jason Response</h3>
    <p>I suppose if we couldn't laugh at things that don't make sense, we couldn't react to a lot of life.</p>
  </figcaption><span class="read-more">
     
    Read More <i class="ion-android-arrow-forward"></i></span>
  <a href="#"></a>
</figure>
<figure class="snip1356 blue hover"><img src="https://i.pinimg.com/564x/f4/9e/92/f49e92753f49a1ef1819267448a61a81.jpg" alt="sample45" />
  <div class="image"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample45.jpg" alt="sample45" /></div>
  <figcaption>
    <h3>Carnegie Mondover</h3>
    <p>You know what we need, Hobbes? We need an attitude. Yeah, you can't be cool if you don't have an attitude.</p>
  </figcaption><span class="read-more">
     
    Read More <i class="ion-android-arrow-forward"></i></span>
  <a href="#"></a>
</figure>
<figure class="snip1356 orange"><img src="https://i.pinimg.com/564x/f4/9e/92/f49e92753f49a1ef1819267448a61a81.jpg" alt="sample98" />
  <div class="image"><img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/331810/sample98.jpg" alt="sample98" /></div>
  <figcaption>
    <h3>Quiche Hollandaise</h3>
    <p>The only skills I have patience to learn are those that have no real application in life.</p>
  </figcaption><span class="read-more">
     
    Read More <i class="ion-android-arrow-forward"></i></span>
  <a href="#"></a>
</figure>

[/html]

0

8

[html]
<style>
.container{
  display:flex;
     align-items: center;
    justify-content: center;
  height:100%;
background: #3d3d3d;
}
.clip-text {
  padding:10px;
  background: url(https://media.tenor.com/y6VDziqkACsAAAAC/fast-city.gif);
  background-size: cover;
  background-position: center;
  -webkit-background-clip: text;
  color: #00000047;   
  text-transform:uppercase;
  font-size: 80px;
  font-weight: 900;
  letter-spacing:1px;
  user-select:none;
      border-top: solid 10px #00000057;
    border-bottom: solid 10px #00000057;
  text-align:center;
}
</style>
<div class="container">
  <h1 class="clip-text" style="font-size: 10em; font-weight: 900;">
   Road Trip
  </h1>
</div>

[/html]

0

9

[html]
<style>
@import url(https://fonts.googleapis.com/css?family=Alegreya+Sans);

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  background: radial-gradient(#825a63, #4f373c);
  background-attachment: fixed;
}

body {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 20px;
  color: rgba(255, 255, 255, .8);
  font: 1.5em/1.3 'Alegreya Sans', sans-serif;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, .5);
  counter-reset: part;
}

h1 {
  margin: 0;
  color: #b7d8df;
  line-height: 1.2;
  text-align: center;
}

hr {
  height: 100%;
  margin: 20px 0 0;
  padding-bottom: 4px;
  border: none;
  border-bottom: solid 1px rgba(255, 255, 255, .2);
  text-align: center;
  counter-increment: part;
  transition: border-bottom-color .2s ease-out;
}

hr::before {
  content: 'Part ' counter(part, upper-roman);
  display: block;
  color: #b7d8df;
  font-size: 1.1em;
  font-variant: small-caps;
  letter-spacing: .05em;
}

hr:hover, hr:focus {
  border-bottom-color: rgba(255, 255, 255, .8);
  outline: none;
}

hr:not(:focus) {
  cursor: pointer;
}

p {
  text-align: justify;
  overflow: hidden;
  transition: transform .5s ease-out, opacity 1s ease-out;
}

hr:focus ~ p {
  height: auto;
  margin: 0;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, .2);
  opacity: 1;
  transform: translateY(0);
}

hr ~ p, hr:focus ~ hr ~ p {
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(-10px);
}

</style>
<h1>Accordion Effect with Horizontal Rules</h1>

<p>
  My submission for rodeo-010. Creates an animated accordion effect with just &lt;hr&gt; and &lt;p&gt; tags and some creative CSS selectors. No JavaScript. Parts are automatically numbered using CSS counters. Try it out while enjoying some facts about bears from Wikipedia.
</p>

<hr tabindex="1">
<p>
  Bears are mammals of the family Ursidae. They are caniforms, or doglike carnivorans, with the pinnipeds being their closest living relatives.
</p>
<p>
  Common characteristics of modern bears include large bodies with stocky legs, long snouts, shaggy hair, plantigrade paws with five nonretractile claws, and short tails.
</p>

<hr tabindex="2">
<p>
  Except courting individuals and mothers with their young, bears are typically solitary animals. Bears possess an excellent sense of smell and, despite their heavy build and awkward gait, are adept runners, climbers, and swimmers.
</p>
<p>
  In autumn, some bear species forage much fermented fruit, which affects their behaviour. Bears den in caves and burrows; most species occupy their dens during the winter for a long period (up to 100 days) of sleep that resembles hibernation.
</p>

<hr tabindex="3">
<p>
  Unlike most other members of the Carnivora, bears have relatively undeveloped carnassial teeth, and their teeth are adapted for a diet that includes a significant amount of vegetable matter. The canine teeth are large, and the molar teeth flat and crushing. Considerable variation occurs in dental formula even within a given species.
</p>

<hr tabindex="4">
<p>
  While many people think bears are nocturnal, they are, in fact, generally diurnal, active for the most part during the day.
</p>
<p>
  The belief they are nocturnal apparently comes from the habits of bears that live near humans, which engage in some nocturnal activities, such as raiding trash cans or crops while avoiding humans.
</p>
<p>
  But really, bears are awesome pretty much any time of day or night.
</p>
[/html]

0

10

[html]
<style>
@import url('https://fonts.googleapis.com/css?family=Rubik&display=swap');

body{
   background: #f6f6f6;
}

.box{
   width: 320px;
   margin: 100px auto;
   background: #fff;
   border-radius: 7px;
   box-shadow: 1px 2px 4px rgba(0,0,0,.3);
}

.box .heading{
   background: #7800CF;
   border-radius: 7px 7px 0px 0px;
   padding: 10px;
   color: #fff;
   text-align: center;
   font-family: "Rubik";
}

.faqs{
   padding: 0px 20px 20px;
}

::-webkit-details-marker{
   float: right;
   margin-top: 3px;
}

details{
   background: #f6f6f6;
   padding: 10px 20px;
   border-radius: 7px;
   margin-top: 20px;
   font-family: "Rubik";
   font-size: 14px;
   letter-spacing: 1px;
   cursor: pointer;
}

details summary{
   outline: none;
}
</style>

<div class="box">
   <p class="heading">FAQs</p>
   <div class="faqs">
      <details>
         <summary>What is Lorem ipsum?</summary>
         <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
      </details>
      <details>
         <summary>What is Lorem ipsum?</summary>
         <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
      </details>
      <details>
         <summary>What is Lorem ipsum?</summary>
         <p class="text">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
      </details>
   </div>
</div>

[/html]

0

11

[html]
<style>
body{
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
background: #333;
}

h1{
margin: 0;
padding: 0;
font-size: 60px;
text-transform: uppercase;
font-family: arial rounded mt;
cursor: pointer;

}

h1 span{
display: inline-flex;
color: #a1ff34;

}

h1 span:nth-child(even){
overflow: hidden;
transition: ease-in-out 0.5s;
color: #fff;
border-bottom: 8px solid #a1ff34;
letter-spacing: -1em;
}

h1:hover span:nth-child(even){
letter-spacing: 0;
cursor: pointer;
}

h1:hover span:nth-child(2){
transition-delay: 0s;

}

h1:hover span:nth-child(4){
transition-delay: 0.5s;

}

h1:hover span:nth-child(6){
transition-delay: 1s;
}
</style>
<h1>
    <span>W</span><span>orld</span>
    <span>W</span><span>ise</span>
    <span>W</span><span>eb</span>
</h1>
[/html]

0

12

[html]
<style>
h13 {
   background: url("https://i.imgur.com/jGIGWOA.jpg");
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   font:150px pacifico;
   font-weight:900;
   text-align:center;
   letter-spacing:-2px;
   margin:0;
}

</style>
<link href='https://fonts.googleapis.com/css?family=Pacifico' rel='stylesheet' type='text/css'>
<h13>codepen</h13>
[/html]

0

13

[html]
<style>
:root {
--main-bg: #1d1e22;
}

html {
box-sizing: border-box;
}

*,
*::before,
*::after {
box-sizing: inherit;
margin: 0;
padding: 0;
}

.kbody {
position: relative;
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
padding: 1rem;
min-height: 100vh;
font-weight: 700;
font-family: "Monoton", sans-serif;
color: #ffffff;
background-color: var(--main-bg);
}

svg {
position: absolute;
}

.wrapper {
position: relative;
width: 100%;
text-align: center;}

.wrapper p {
    font-size: 10rem!important;
}

.water {
filter: url("#water");
}

.smoke {
position: absolute;
width: 100%;
filter: url(#smoke) blur(5px) opacity(0.8);
}

.smoke::before {
content: attr(data-text);
position: absolute;
filter: url(#smoke) drop-shadow(0 0 40px #ffffff) blur(40px);
}

@media (max-width: 968px) {
html {
    font-size: 10px;
}
}

</style>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Monoton&display=swap" rel="stylesheet">

<div class="kbody">
<svg viewport="0 0 1024 362" width="1024" height="362">
<filter id="water">
    <feImage xlink:href="https://moxsim.ru/codepen/016-text-art/ocean.jpg" result="IMAGE"></feImage>

    <feTurbulence id="turbulence" in="IMAGE" baseFrequency="0.01" numOctaves="2" result="NOISE"></feTurbulence>

    <feDisplacementMap in="IMAGE" in2="NOISE" scale="30" result="DISPLACE"></feDisplacementMap>
    <animate xlink:href="#turbulence" attributeName="baseFrequency" dur="40s" keyTimes="0;0.5;1" values="0.01 0.02;0.02 0.04;0.01 0.02" repeatCount="indefinite"></animate>
    <feComposite operator="in" in="DISPLACE" in2="SourceGraphic"></feComposite>
</filter>

<filter id="smoke">
    <feTurbulence id="smoke-turbulence" type="fractalNoise" baseFrequency="0.01" numOctaves="3"></feTurbulence>
    <animate xlink:href="#smoke-turbulence" attributeName="baseFrequency" dur="40s" keyTimes="0;0.5;1" values="0.01 0.02;0.02 0.04;0.01 0.02" repeatCount="indefinite"></animate>
    </feTurbulence>
    <feDisplacementMap in="SourceGraphic" scale="30"></feDisplacementMap>
</filter>
</svg>

<div class="wrapper">
<p class="smoke" data-text="SMOKE">SMOKE</p>
<p class="water">SMOKE</p>
</div>
</div>
[/html]

0


Вы здесь » concoction » ХТМЛ и журнал » тексты


Рейтинг форумов | Создать форум бесплатно