...
Ну, что у нас плохого? (с)
Сообщений 1 страница 13 из 13
Поделиться22023-01-10 06:27:40
Поделиться32023-01-10 06:28:06
Поделиться42023-01-10 06:28:20
Поделиться52023-01-10 18:17:38
Отредактировано Juan Rivera (2023-01-10 18:19:48)
Поделиться62023-01-12 00:00:30
[html]
<style>
*,
*:before,
*:after {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
overflow: hidden;
height: 450px;
width: 750px;
}
.bg {
position: relative;
overflow: hidden;
height: 100vh;
}
.bg div {
position: relative;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 101%;
height: 102%;
background: url("https://sm.ign.com/ign_ap/gallery/t/the-mandal/the-mandalorian-cara-dunes-funko-pop-reveal_wymk.jpg") center no-repeat;
background-size: cover;
-webkit-filter: blur(7px);
}
.lens {
position: absolute;
top: 50%;
left: 50%;
width: 275px;
height: 275px;
border-radius: 50%;
background: url("https://sm.ign.com/ign_ap/gallery/t/the-mandal/the-mandalorian-cara-dunes-funko-pop-reveal_wymk.jpg") center no-repeat fixed;
background-size: cover;
z-index: 2;
cursor: none;
}
.lens span:nth-child(1) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(24deg);
transform: rotate(24deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(1) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(2) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(48deg);
transform: rotate(48deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(2) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(3) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(72deg);
transform: rotate(72deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(3) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(4) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(96deg);
transform: rotate(96deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(4) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(5) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(120deg);
transform: rotate(120deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(5) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(6) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(144deg);
transform: rotate(144deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(6) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(7) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(168deg);
transform: rotate(168deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(7) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(8) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(192deg);
transform: rotate(192deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(8) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(9) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(216deg);
transform: rotate(216deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(9) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(10) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(240deg);
transform: rotate(240deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(10) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(11) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(264deg);
transform: rotate(264deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(11) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(12) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(288deg);
transform: rotate(288deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(12) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(13) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(312deg);
transform: rotate(312deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(13) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(14) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(336deg);
transform: rotate(336deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(14) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(15) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(15) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
.lens span:nth-child(16) {
position: absolute;
top: -22px;
left: 113px;
height: 165px;
width: 50px;
-webkit-transform: rotate(384deg);
transform: rotate(384deg);
-webkit-transform-origin: bottom center;
transform-origin: bottom center;
}
.lens span:nth-child(16) div {
position: absolute;
width: 100%;
-webkit-transform: rotate(90deg);
transform: rotate(90deg);
}
</style>
<div class="bg">
<div></div>
</div>
<div class="lens" style="border: 2px #ccc solid">
</div>
<script>
$(document).ready(function() {
var $lens = $('.lens'),
lensWHalf = $lens.width() / 2;
$(document).on('mousemove', function(e) {
$lens.css({
//Subtract half width of the container, so cursor would be right in the center
"left": e.pageX - lensWHalf,
"top": e.pageY - lensWHalf
});
})
})</script>
[/html]
Отредактировано Juan Rivera (2023-01-15 02:26:17)
Поделиться72023-01-12 00:31:16
[html]
<style>
#episode {
margin: auto;
margin-top: 50px;
margin-bottom: 50px;
width: 600px;
display: flex;
background-color: #FFF;
-webkit-box-shadow: 10px 10px 23px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 10px 10px 23px 0px rgba(0, 0, 0, 0.75);
box-shadow: 10px 10px 23px 0px rgba(0, 0, 0, 0.75);
}
#episode-left-column {
width: 400px
}
#episode-left-column-image {
margin-left: 10px;
width: 380px;
margin-top: -30px;
}
#episode-left-column-image img {
width: 100%;
-webkit-box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.75);
-moz-box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.75);
box-shadow: 10px 10px 10px 0px rgba(0, 0, 0, 0.75);
}
.separator {
margin-top: 10px;
border: 1px solid #C3C3C3;
}
#episode-left-column-date {
font-size: 70px;
color: #C3C3C3;
}
#episode-left-column-month {
font-size: 28px;
color: #C3C3C3;
}
#episode-left-column-year {
font-size: 28px;
color: #C3C3C3;
}
#episode-left-column-meta {
display: flex;
padding: 10px;
align-items: center;
bottom: 60px;
position: absolute;
}
#episode-left-column-date {
text-align: center;
}
.episode-left-column-character {
color: #6c6c6c
}
#episode-title {
font-family: 'Arsenal';
text-transform: uppercase;
font-size: 28px;
}
#episode-right-column {
padding: 10px;
}
}
</style>
<div id="episode">
<div id="episode-left-column">
<div id="episode-left-column-image">
<img src="https://i.imgur.com/ncNLMnA.gif" />
</div>
<div id="episode-left-column-meta">
<div>
<div id="episode-left-column-date-block">
<div id="episode-left-column-date">22</div>
<div>
<span id="episode-left-column-month">JUNE</span>
<span id="episode-left-column-year">2022</span>
</div>
</div>
</div>
<div id="episode-left-column-character-block">
<span class="episode-left-column-character">Nikole Kramer,</span>
<span class="episode-left-column-character">Juan Rivera</span>
</div>
</div>
</div>
<div id="episode-right-column">
<h2 id="episode-title">Mercy</h2>
<div class="separator"></div>
<p>Прекрасный солнечный летний день, чтобы зайти в кафе за освежающим ягодным лимонадом после отправиться в парк. Там если повезет, то можно найти свободную лавочку у водоема и устроившись в теньке спокойно почитать книгу под пение птиц. И все это можно было бы осуществить, если бы не одно «но». Кафе все разграблены, лавочки разобраны на дрова, собственно, туда же пошли и книги. Да, можно послушать пение чертовых птиц.</p>
</div>
</div>
[/html]
Отредактировано Juan Rivera (2023-01-12 00:44:40)
Поделиться82023-01-15 19:57:59
[html]
<style>
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
}
body {
height: 601px!important;
width: 750px!important;
margin: 0;
margin: 0;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
}
.container {
position: relative;
width: 900px;
height: 600px;
border: 2px solid white;
}
.container .img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: 900px 100%;
}
.container .background-img {
background-image: url("https://i0.wp.com/mikeroshuk.com/wp-content/uploads/2021/12/step2.jpg?w=1800&ssl=1");
}
.container .foreground-img {
background-image: url("https://i0.wp.com/mikeroshuk.com/wp-content/uploads/2021/12/original.jpg?w=1800&ssl=1");
width: 50%;
}
.container .slider {
position: absolute;
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 100%;
background: rgba(242, 242, 242, 0.3);
outline: none;
margin: 0;
transition: all 0.2s;
display: flex;
justify-content: center;
align-items: center;
}
.container .slider:hover {
background: rgba(242, 242, 242, 0.1);
}
.container .slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 6px;
height: 600px;
background: white;
cursor: pointer;
}
.container .slider::-moz-range-thumb {
width: 6px;
height: 600px;
background: white;
cursor: pointer;
}
.container .slider-button {
pointer-events: none;
position: absolute;
width: 30px;
height: 30px;
border-radius: 50%;
background-color: white;
left: calc(50% - 18px);
top: calc(50% - 18px);
display: flex;
justify-content: center;
align-items: center;
}
.container .slider-button:after {
content: "";
padding: 3px;
display: inline-block;
border: solid #5D5D5D;
border-width: 0 2px 2px 0;
transform: rotate(-45deg);
}
.container .slider-button:before {
content: "";
padding: 3px;
display: inline-block;
border: solid #5D5D5D;
border-width: 0 2px 2px 0;
transform: rotate(135deg);
}
</style>
<div class='container'>
<div class='img background-img'></div>
<div class='img foreground-img'></div>
<input type="range" min="1" max="100" value="50" class="slider" name='slider' id="slider">
<div class='slider-button'></div>
</div>
<script>
$("#slider").on("input change", (e)=>{
const sliderPos = e.target.value;
// Update the width of the foreground image
$('.foreground-img').css('width', `${sliderPos}%`)
// Update the position of the slider button
$('.slider-button').css('left', `calc(${sliderPos}% - 18px)`)
});
</script>
[/html]
Отредактировано Juan Rivera (2023-01-15 20:00:29)
Поделиться92023-01-20 00:15:47
[html]
<style>
@import url("https://fonts.googleapis.com/css?family=Cardo:400i|Rubik:400,700&display=swap");
:root {
--d: 700ms;
--e: cubic-bezier(0.19, 1, 0.22, 1);
--font-sans: 'Rubik', sans-serif;
--font-serif: 'Cardo', serif;
}
* {
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
display: grid;
place-items: center;
}
.page-content {
display: grid;
grid-gap: 1rem;
padding: 1rem;
max-width: 700px;
margin: 0 auto;
font-family: var(--font-sans);
}
@media (min-width: 600px) {
.page-content {
grid-template-columns: repeat(2, 1fr);
}
}
@media (min-width: 800px) {
.page-content {
grid-template-columns: repeat(4, 1fr);
}
}
.card {
position: relative;
display: -webkit-box;
display: flex;
-webkit-box-align: end;
align-items: flex-end;
overflow: hidden;
padding: 1rem;
width: 100%;
text-align: center;
color: whitesmoke;
background-color: whitesmoke;
//box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 2px 2px rgba(0, 0, 0, 0.1), 0 4px 4px rgba(0, 0, 0, 0.1), 0 8px 8px rgba(0, 0, 0, 0.1), 0 16px 16px rgba(0, 0, 0, 0.1);
}
@media (min-width: 600px) {
.card {
height: 305px;
}
}
.card:before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 110%;
background-size: cover;
background-position: 0 0;
-webkit-transition: -webkit-transform calc(var(--d) * 1.5) var(--e);
transition: -webkit-transform calc(var(--d) * 1.5) var(--e);
transition: transform calc(var(--d) * 1.5) var(--e);
transition: transform calc(var(--d) * 1.5) var(--e), -webkit-transform calc(var(--d) * 1.5) var(--e);
pointer-events: none;
}
.card:after {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 200%;
pointer-events: none;
//background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 0, 0, 0)), color-stop(11.7%, rgba(0, 0, 0, 0.009)), color-stop(22.1%, rgba(0, 0, 0, 0.034)), color-stop(31.2%, rgba(0, 0, 0, 0.072)), color-stop(39.4%, rgba(0, 0, 0, 0.123)), color-stop(46.6%, rgba(0, 0, 0, 0.182)), color-stop(53.1%, rgba(0, 0, 0, 0.249)), color-stop(58.9%, rgba(0, 0, 0, 0.32)), color-stop(64.3%, rgba(0, 0, 0, 0.394)), color-stop(69.3%, rgba(0, 0, 0, 0.468)), color-stop(74.1%, rgba(0, 0, 0, 0.54)), color-stop(78.8%, rgba(0, 0, 0, 0.607)), color-stop(83.6%, rgba(0, 0, 0, 0.668)), color-stop(88.7%, rgba(0, 0, 0, 0.721)), color-stop(94.1%, rgba(0, 0, 0, 0.762)), to(rgba(0, 0, 0, 0.79)));
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.009) 11.7%, rgba(0, 0, 0, 0.034) 22.1%, rgba(0, 0, 0, 0.072) 31.2%, rgba(0, 0, 0, 0.123) 39.4%, rgba(0, 0, 0, 0.182) 46.6%, rgba(0, 0, 0, 0.249) 53.1%, rgba(0, 0, 0, 0.32) 58.9%, rgba(0, 0, 0, 0.394) 64.3%, rgba(0, 0, 0, 0.468) 69.3%, rgba(0, 0, 0, 0.54) 74.1%, rgba(0, 0, 0, 0.607) 78.8%, rgba(0, 0, 0, 0.668) 83.6%, rgba(0, 0, 0, 0.721) 88.7%, rgba(0, 0, 0, 0.762) 94.1%, rgba(0, 0, 0, 0.79) 100%);
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-transition: -webkit-transform calc(var(--d) * 2) var(--e);
transition: -webkit-transform calc(var(--d) * 2) var(--e);
transition: transform calc(var(--d) * 2) var(--e);
transition: transform calc(var(--d) * 2) var(--e), -webkit-transform calc(var(--d) * 2) var(--e);
}
.card:nth-child(1):before {
background-image: url(https://images5.fanpop.com/image/photos … 44-246.gif);
}
.card:nth-child(2):before {
background-image: url(https://img.wattpad.com/e6d2b77cd2b2e1b … 342e676966);
}
.content {
position: relative;
display: -webkit-box;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
-webkit-box-align: center;
align-items: center;
width: 100%;
padding: 1rem;
-webkit-transition: -webkit-transform var(--d) var(--e);
transition: -webkit-transform var(--d) var(--e);
transition: transform var(--d) var(--e);
transition: transform var(--d) var(--e), -webkit-transform var(--d) var(--e);
z-index: 1;
}
.content > * + * {
margin-top: 1rem;
}
.title {
font-size: 1.3rem!important;
font-weight: bold!important;
line-height: 1.2;
}
.copy {
font-family: var(--font-serif);
font-size: 1.125rem;
font-style: italic;
line-height: 1.35;
}
.btn {
cursor: pointer;
margin-top: 1.5rem;
padding: 0.75rem 1.5rem;
font-size: 0.65rem;
font-weight: bold;
letter-spacing: 0.025rem;
text-transform: uppercase;
color: white;
background-color: black;
border: none;
}
.btn:hover {
background-color: #0d0d0d;
}
.btn:focus {
outline: 1px dashed yellow;
outline-offset: 3px;
}
@media (hover: hover) and (min-width: 600px) {
.card:after {
-webkit-transform: translateY(0);
transform: translateY(0);
}
.content {
-webkit-transform: translateY(calc(100% - 4.5rem));
transform: translateY(calc(100% - 4.5rem));
}
.content > *:not(.title) {
opacity: 0;
-webkit-transform: translateY(1rem);
transform: translateY(1rem);
-webkit-transition: opacity var(--d) var(--e), -webkit-transform var(--d) var(--e);
transition: opacity var(--d) var(--e), -webkit-transform var(--d) var(--e);
transition: transform var(--d) var(--e), opacity var(--d) var(--e);
transition: transform var(--d) var(--e), opacity var(--d) var(--e), -webkit-transform var(--d) var(--e);
}
.card:hover,
.card:focus-within {
-webkit-box-align: center;
align-items: center;
}
.card:hover:before,
.card:focus-within:before {
-webkit-transform: translateY(-4%);
transform: translateY(-4%);
}
.card:hover:after,
.card:focus-within:after {
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
}
.card:hover .content,
.card:focus-within .content {
-webkit-transform: translateY(0);
transform: translateY(0);
}
.card:hover .content > *:not(.title),
.card:focus-within .content > *:not(.title) {
opacity: 1;
-webkit-transform: translateY(0);
transform: translateY(0);
-webkit-transition-delay: calc(var(--d) / 8);
transition-delay: calc(var(--d) / 8);
}
.card:focus-within:before, .card:focus-within:after,
.card:focus-within .content,
.card:focus-within .content > *:not(.title) {
-webkit-transition-duration: 0s;
transition-duration: 0s;
}
}
</style>
<main class="page-content">
<div class="card">
<div class="content">
<h2 class="title">Lost Child</h2>
<p class="copy">Оливия Честер – человек-энциклопедия. Дважды финалистка теле-викторины, студентка, активистка и просто красавица с острым языком и большими проблемами.</p>
<button class="btn">I'm here!</button>
</div>
</div>
<div class="card">
<div class="content">
<h2 class="title">Lost Child</h2>
<p class="copy">Джессика Майлз - спортсменка и чемпионка. Отчаянная и несгибаемая, любящая риск и скорость. А вот лужи крови на полу и родственники-маньяки в ее планы не входили. </p>
<button class="btn">I'm here!</button>
</div>
</div>
</main>
[/html]
Отредактировано Juan Rivera (2023-01-20 00:27:22)
Поделиться102023-01-20 20:15:01
[html]
<style>
#medal {
position: absolute;
top: 360px;
left: 420px;
width: 239px;
height: 245px;
color: transparent;
border-radius: 125px;
display: block!important;
box-shadow: -5px 2px 3px #545454;
background-image: url(https://cdn.shopify.com/s/files/1/0261/ … 00x300.png);
background-position: -5px;
background-size: cover;
transition-duration: 1s;
}
#medal:hover {
box-shadow: 0px 0px 11px 2px #fff;
}
.center_box img {
width: 100%;
transition-duration: 1s;
-webkit-filter: grayscale(100%) invert(1);
filter: grayscale(100%) invert(1);
}
.film-wrapper {
background-color: #333!important;
height: 600px;
width: 310px;
box-shadow: -3px 4px 3px 0px #494949;
margin-left: 4px;
margin-bottom: 4px;
transform: rotate(4deg);
}
.note-wrapper {
flex-grow: 1;
}
.box{
width: 300px;
height: 150px;
display: block;
margin: auto;
overflow: hidden;
box-shadow: -3px 4px 3px 0px #494949;
}
.center_box:hover {
box-shadow: 0px 0px 11px 2px #fff;
}
.boxes-left{
width: 30px;
height: 150px;
float: left;
}
.boxes-right{
width: 30px;
height: 150px;
float: right;
}
.small_box{
margin: 0;
background-color: #fff;
display: inline-block;
width: 20px;
height: 15px;
margin: 10px 5px 10px 5px;
}
.center_box{
transition-duration: 1s;
height: 150px;
margin-left: 30px;
margin-right: 30px;
padding: 3px;
}
@keyframes load{
from{transform: scale(0);}
}
.note > i {
display: block;
width: 0;
height: 0;
border: 15px solid transparent;
border-bottom-color: #f8f1c6;
position: absolute;
margin-top: -30px;
margin-left: 200px;
}
.note > b {
display: block;
width: 0;
height: 0;
border: 15px solid transparent;
border-bottom-color: #C4C296;
position: absolute;
margin-top: -31px;
margin-left: 200px;
}
.note > div {
background:
radial-gradient(#edf1f9 30%, transparent 31%) 0 0,
radial-gradient(rgba(0,0,0,0.8) 30%, transparent 35%) 0 0px;
background-size: 40px 40px;
background-repeat: repeat-y;
margin-left: 3px;
}
.note > div.off {
background: none;
margin-left: -20px;
}
.note > div > div,
.note > div > div > div {
height: 100%;
border-left: 1px solid #ddbbb8;
box-shadow: 0 0 1px rgba(221,187,184,0.4),
inset 0 0 1px rgba(221,187,184,0.4);
}
.note > div > div {
margin-left: 40px;
}
.note > div > div > div {
padding: 22px 20px 21px 20px;
margin-left: 4px;
outline: none;
}
.note {
font-size: 16px;
line-height: 22px;
background: #f8f1c6;
background: linear-gradient(#ededed 0%, #f3f3f3 96%, #d1d1d1 100%);
background-size: 1px 22px;
border-radius: 3px;
border: 1px solid #bebebe;
color: #808080;
text-shadow: 0 1px 1px white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1),
inset 0 1px 1px rgba(255,255,255,0.8);
width: 90%;
height: 400px;
margin: 20px auto;
transform: rotate(357deg);
}
#note-title {
color: #aaaaaa;
font-weight: bold;
}
.wrapper {
display: flex;
padding: 10px 0 10px 22px;
}
</style>
<div class="wrapper">
<div class="film-wrapper">
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f1" src="https://tractive.com/blog/wp-content/uploads/2016/04/puppy-care-guide-for-new-parents.jpg" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f2" src="https://static.scientificamerican.com/sciam/cache/file/7A715AD8-449D-4B5A-ABA2C5D92D9B5A21_source.png" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f3" src="https://www.usnews.com/object/image/00000148-faa6-d526-a5db-fba6951a0000/141010-clownfish-editorial.jpg" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f4" src="https://a-z-animals.com/media/2021/06/Mexican-Alligator-Lizard-on-leaf.jpg" />
</div>
</div>
</div>
<div class="note-wrapper">
<div class="note">
<!--<b></b><i></i>-->
<div class="off"><div><div contenteditable="true" spellcheck="false">
<span id="note-title">Memory Lane</span><br />
<span id="note-body">
Click on a negative to activate a memory</span>
</div></div></div></div>
<a id="medal" href="https://vanover.ru">.</a>
</div>
</div>
<script>
var memories = {
"f1": {
"title": "Puppy",
"text": "This is a puppy!"
},
"f2": {
"title": "Bird",
"text": "What a nice bird!"
},
"f3": {
"title": "Fish",
"text": "This is a fish!"
},
"f4": {
"title": "Lizard",
"text": "Who does not like lizards?"
}
}
$('.center_box img').click(function() {
$('.center_box img').attr('style', "-webkit-filter: grayscale(100%) invert(1); filter: grayscale(100%) invert(1);")
$(this).attr('style', "-webkit-filter: grayscale(0) invert(0); filter: grayscale(0) invert(0);")
var id = $(this).attr('id');
$('#note-title').text(memories[id]['title']);
$('#note-body').text(memories[id]['text']);
})
</script>
[/html]
Отредактировано Juan Rivera (2023-01-21 01:10:59)
Поделиться112023-01-22 21:48:29
[html]
<style>
#medal {
position: absolute;
top: 360px;
left: 420px;
width: 239px;
height: 245px;
color: transparent;
border-radius: 125px;
display: block!important;
box-shadow: -5px 2px 3px #545454;
background-image: url(https://cdn.shopify.com/s/files/1/0261/ … 00x300.png);
background-position: -5px;
background-size: cover;
transition-duration: 1s;
}
#back {
position: absolute;
top: 360px;
left: 676px;
font-size: 40px;
color: #aaa;
visibility: hidden;
text-decoration: none;
cursor: pointer;
}
#medal:hover {
box-shadow: 0px 0px 11px 2px #fff;
}
.center_box img {
width: 100%;
transition-duration: 1s;
-webkit-filter: grayscale(100%) invert(1);
filter: grayscale(100%) invert(1);
}
.film-wrapper {
background-color: #333!important;
height: 600px;
width: 310px;
box-shadow: -3px 4px 3px 0px #494949;
margin-left: 4px;
margin-bottom: 4px;
transform: rotate(4deg);
}
.note-wrapper {
flex-grow: 1;
}
.box{
width: 300px;
height: 150px;
display: block;
margin: auto;
overflow: hidden;
box-shadow: -3px 4px 3px 0px #494949;
}
.center_box:hover {
box-shadow: 0px 0px 11px 2px #fff;
}
.boxes-left{
width: 30px;
height: 150px;
float: left;
}
.boxes-right{
width: 30px;
height: 150px;
float: right;
}
.small_box{
margin: 0;
background-color: #fff;
display: inline-block;
width: 20px;
height: 15px;
margin: 10px 5px 10px 5px;
}
.center_box{
transition-duration: 1s;
height: 150px;
margin-left: 30px;
margin-right: 30px;
padding: 3px;
}
@keyframes load{
from{transform: scale(0);}
}
.note > i {
display: block;
width: 0;
height: 0;
border: 15px solid transparent;
border-bottom-color: #f8f1c6;
position: absolute;
margin-top: -30px;
margin-left: 200px;
}
.note > b {
display: block;
width: 0;
height: 0;
border: 15px solid transparent;
border-bottom-color: #C4C296;
position: absolute;
margin-top: -31px;
margin-left: 200px;
}
.note > div {
background:
radial-gradient(#edf1f9 30%, transparent 31%) 0 0,
radial-gradient(rgba(0,0,0,0.8) 30%, transparent 35%) 0 0px;
background-size: 40px 40px;
background-repeat: repeat-y;
margin-left: 3px;
}
.note > div.off {
background: none;
}
.note > div > div > div {
padding: 22px 20px 21px 20px;
margin-left: 4px;
outline: none;
width: 336px;
}
.note {
font-size: 16px;
line-height: 22px;
background: #f8f1c6;
background: linear-gradient(#ededed 0%, #f3f3f3 96%, #d1d1d1 100%);
background-size: 1px 22px;
border-radius: 3px;
border: 1px solid #bebebe;
color: #808080;
text-shadow: 0 1px 1px white;
box-shadow: 0 2px 5px rgba(0,0,0,0.1),
inset 0 1px 1px rgba(255,255,255,0.8);
width: 90%;
height: 400px;
margin: 20px auto;
transform: rotate(357deg);
}
#note-title {
color: #aaaaaa;
font-weight: bold;
}
.wrapper {
display: flex;
padding: 10px 0 10px 22px;
}
</style>
<div class="wrapper">
<div class="film-wrapper">
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f1" src="https://forumstatic.ru/files/001b/ac/d7/93063.png" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f2" src="https://forumstatic.ru/files/001b/ac/d7/72830.png" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f3" src="https://forumstatic.ru/files/001b/ac/d7/24436.png" />
</div>
</div>
<div class="box">
<div class="boxes-left">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="boxes-right">
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
<span class="small_box"></span>
</div>
<div class="center_box">
<img id="f4" src="https://forumstatic.ru/files/001b/ac/d7/74354.png" />
</div>
</div>
</div>
<div class="note-wrapper">
<div class="note">
<!--<b></b><i></i>-->
<div class="off"><div><div contenteditable="true" spellcheck="false">
<span id="note-title">Elly</span><br />
<span id="note-body">
Разыскивается малолетняя сорвиголова
</span>
</div></div></div></div>
<a id="medal" href="https://vanover.ru">.</a>
<a id="back" onclick="back()">←</a>
</div>
</div>
<script>
var memories = {
"init": {
"title": "Elly",
"text": "Разыскивается малолетняя сорвиголова",
},
"f1": {
"title": "Сирота",
"text": "Девочка без семьи, без надежды и без будущего.",
"static": "https://forumstatic.ru/files/001b/ac/d7/93063.png",
"animation": "https://forumstatic.ru/files/001b/ac/d7/65360.gif"
},
"f2": {
"title": "Впервые увидеть мир",
"text": "Однажды оказалось, что за пределами города тоже есть жизнь. Она опасная и незнакомая, но по-своему завораживающая.",
"static": "https://forumstatic.ru/files/001b/ac/d7/72830.png",
"animation": "https://forumstatic.ru/files/001b/ac/d7/11241.gif"
},
"f3": {
"title": "Найти семью",
"text": "А может быть, даже после конца света еще есть шанс найти человека, который станет тебе родным?",
"static": "https://forumstatic.ru/files/001b/ac/d7/24436.png",
"animation": "https://forumstatic.ru/files/001b/ac/d7/34828.gif"
},
"f4": {
"title": "Найти надежду",
"text": "Иногда стоит проехать полмира ради того, чтобы найти себя.",
"static": "https://forumstatic.ru/files/001b/ac/d7/74354.png",
"animation": "https://forumstatic.ru/files/001b/ac/d7/81863.gif"
}
}
function back()
{
$('.center_box img').attr('style', "-webkit-filter: grayscale(100%) invert(1); filter: grayscale(100%) invert(1);")
$('.center_box img').each(function() {
var id = $(this).attr('id');
$(this).attr('src', memories[id]['static']);
})
$('#note-title').text(memories['init']['title']);
$('#note-body').text(memories['init']['text']);
$('#back').attr('style', 'visibility: hidden');
}
$('.center_box img').click(function() {
$('.center_box img').attr('style', "-webkit-filter: grayscale(100%) invert(1); filter: grayscale(100%) invert(1);")
$('.center_box img').each(function() {
var id = $(this).attr('id');
$(this).attr('src', memories[id]['static']);
})
$('#back').attr('style', 'visibility: visible');
$(this).attr('style', "-webkit-filter: grayscale(0) invert(0); filter: grayscale(0) invert(0);")
var id = $(this).attr('id');
$(this).attr('src', memories[id]['animation']);
$('#note-title').text(memories[id]['title']);
$('#note-body').text(memories[id]['text']);
})
</script>
[/html]
Отредактировано Juan Rivera (2023-01-23 04:13:22)
Поделиться122023-01-24 01:14:54
https://www.tumblr.com/natashowlet/707235480182439937/joel-miller-icons?source=share&_branch_match_id=834452793033283803&_branch_referrer=H4sIAAAAAAAAAwXBYQqAIAwG0BPp+lEE3WbZQOObC7fI4/dejXj8IOLI8eqJkYspdQ72ah8k6DZB0gbISK1Yd9omdJ+Lr5f1H4kZvi9AAAAA
Ну, в принципе, аватарами на ближайшие пару лет я обеспечен
Поделиться132023-01-30 21:33:42
[html]<style>
html, body {
height: 400px!important;
}
body #user-button {
z-index: 1000;
bottom: 1rem !important;
right: 1rem !important;
color: var(--user-button-text);
transition: 1s 0s ease-out;
-webkit-animation: slide 3s ease-out forwards;
animation: slide 3s ease-out forwards;
}
@-webkit-keyframes slide {
0%, 50% {
opacity: 0;
display: block !important;
}
100% {
opacity: 1;
display: block !important;
}
}
@keyframes slide {
0%, 50% {
opacity: 0;
display: block !important;
}
100% {
opacity: 1;
display: block !important;
}
}
body #user-button .u-card {
border-radius: 100%;
box-shadow: 0 0 1rem -0.25rem var(--user-button-shadow), inset 0 0 1rem -0.75rem var(--user-button-shadow);
}
body #user-button .u-main {
cursor: pointer;
--user-button-background:var(--user-button-main, #EC87C0);
}
body #user-button .u-main img {
height: 100%;
width: 100%;
}
body #user-button .u-main iframe {
position: absolute;
top: 0;
left: 0;
width: 4rem;
height: 4rem;
opacity: 1;
transition: 0s 4s;
}
body #user-button .u-icons {
position: relative;
z-index: 950;
transform: translate(-50%, -50%);
background: var(--user-button-circle);
box-shadow: 0 0 0 0.125rem var(--user-button-cardborder);
border-radius: 100%;
transition: 0.25s;
opacity: 1 !important;
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
/*&:before {
z-index:-1;
position:absolute;
top:0; right:0; bottom:0; left:0;
content:'';
backdrop-filter: blur(10px);
}*/
}
body #user-button .u-icons a {
color: inherit;
display: grid;
place-items: center;
width: 30px;
height: 30px;
text-decoration: none;
}
body #user-button .u-icons a div {
padding: 0.5rem;
transition: 0s;
}
body #user-button .u-icons a[href="https://twitter.com/Osorpenke"] {
position: relative;
}
body #user-button .u-icons a[href="https://twitter.com/Osorpenke"]:before {
content: "Middle Click";
position: absolute;
top: -1.5rem;
left: 50%;
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
white-space: pre;
transform: translateX(-50%);
opacity: 0;
pointer-events: none;
transition: 0.25s ease-in;
background: #fffc;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
}
body #user-button .u-icons a[href="https://twitter.com/Osorpenke"].show:before {
opacity: 1;
transition: 0.25s ease-out;
}
body #user-button .u-icons a[href="https://twitter.com/Osorpenke"] div {
color: #1da1f2;
}
body #user-button .u-icons a[href="https://codepen.io/z-"] div {
background: black;
color: white;
}
body #user-button .u-icons a.u-random div {
position: relative;
top: -1px;
-webkit-animation: diespin 2s linear infinite;
animation: diespin 2s linear infinite;
}
@-webkit-keyframes diespin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
@keyframes diespin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
body #user-button .u-icons a.u-random:not(:hover) div {
-webkit-animation-play-state: paused;
animation-play-state: paused;
}
body #user-button .u-icons > * {
position: absolute;
width: 30px;
height: 30px;
background: var(--singlecolour);
border-radius: 100%;
cursor: pointer;
transform: translate(-50%, -50%);
transition: 0.25s -0.05s;
}
body #user-button .u-icons > *:before {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
body #user-button .u-icons > *:hover, body #user-button .u-icons > *:focus-within {
background: var(--hcolour);
}
body #user-button .u-icons > *:first-child:nth-last-child(1):nth-child(1), body #user-button .u-icons > *:first-child:nth-last-child(1) ~ *:nth-child(1) {
left: 25%;
top: 25%;
}
body #user-button .u-icons > *:first-child:nth-last-child(2):nth-child(1), body #user-button .u-icons > *:first-child:nth-last-child(2) ~ *:nth-child(1) {
left: 37.5%;
top: 18.75%;
}
body #user-button .u-icons > *:first-child:nth-last-child(2):nth-child(2), body #user-button .u-icons > *:first-child:nth-last-child(2) ~ *:nth-child(2) {
left: 18.75%;
top: 37.5%;
}
body #user-button .u-icons > *:first-child:nth-last-child(3):nth-child(1), body #user-button .u-icons > *:first-child:nth-last-child(3) ~ *:nth-child(1) {
left: 50%;
top: 15.625%;
}
body #user-button .u-icons > *:first-child:nth-last-child(3):nth-child(2), body #user-button .u-icons > *:first-child:nth-last-child(3) ~ *:nth-child(2) {
left: 25%;
top: 25%;
}
body #user-button .u-icons > *:first-child:nth-last-child(3):nth-child(3), body #user-button .u-icons > *:first-child:nth-last-child(3) ~ *:nth-child(3) {
left: 15.625%;
top: 50%;
}
body #user-button .u-icons > *:first-child:nth-last-child(4):nth-child(1), body #user-button .u-icons > *:first-child:nth-last-child(4) ~ *:nth-child(1) {
left: 62.5%;
top: 18.75%;
}
body #user-button .u-icons > *:first-child:nth-last-child(4):nth-child(2), body #user-button .u-icons > *:first-child:nth-last-child(4) ~ *:nth-child(2) {
left: 37.5%;
top: 18.75%;
}
body #user-button .u-icons > *:first-child:nth-last-child(4):nth-child(3), body #user-button .u-icons > *:first-child:nth-last-child(4) ~ *:nth-child(3) {
left: 18.75%;
top: 37.5%;
}
body #user-button .u-icons > *:first-child:nth-last-child(4):nth-child(4), body #user-button .u-icons > *:first-child:nth-last-child(4) ~ *:nth-child(4) {
left: 18.75%;
top: 62.5%;
}
body #user-button:hover .u-icons, body #user-button:focus-within .u-icons {
width: 300% !important;
height: 300% !important;
}
body {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
overflow: hidden;
height: 100vh;
font-family: "Roboto", sans-serif;
transition: 0.25s;
}
body.dark {
background: #232223;
color: white;
}
@media (prefers-color-scheme: dark) {
body:not(.light) {
background: #232223;
color: white;
}
}
body .credit {
position: absolute;
bottom: 20px;
left: 20px;
color: inherit;
}
body .options {
display: flex;
flex-direction: row;
align-items: stretch;
overflow: hidden;
min-width: 600px;
max-width: 900px;
height: 400px;
}
@media screen and (max-width: 718px) {
body .options {
min-width: 520px;
}
body .options .option:nth-child(5) {
display: none;
}
}
@media screen and (max-width: 638px) {
body .options {
min-width: 440px;
}
body .options .option:nth-child(4) {
display: none;
}
}
@media screen and (max-width: 558px) {
body .options {
min-width: 360px;
}
body .options .option:nth-child(3) {
display: none;
}
}
@media screen and (max-width: 478px) {
body .options {
min-width: 280px;
}
body .options .option:nth-child(2) {
display: none;
}
}
body .options .option {
position: relative;
overflow: hidden;
min-width: 45px;
margin: 10px;
background: var(--optionBackground, var(--defaultBackground, #E6E9ED));
background-size: auto 120%;
background-position: center;
cursor: pointer;
transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
body .options .option:nth-child(1) {
--defaultBackground:#ED5565;
}
body .options .option:nth-child(2) {
--defaultBackground:#FC6E51;
}
body .options .option:nth-child(3) {
--defaultBackground:#FFCE54;
}
body .options .option:nth-child(4) {
--defaultBackground:#2ECC71;
}
body .options .option:nth-child(5) {
--defaultBackground:#5D9CEC;
}
body .options .option:nth-child(6) {
--defaultBackground:#AC92EC;
}
body .options .option.active {
flex-grow: 10000;
transform: scale(1);
max-width: 600px;
margin: 0px;
border-radius: 40px;
background-size: auto 100%;
/*&:active {
transform:scale(0.9);
}*/
}
body .options .option.active .shadow {
box-shadow: inset 0 -120px 120px -120px black, inset 0 -120px 120px -100px black;
}
body .options .option.active .label {
bottom: 20px;
left: 20px;
}
body .options .option.active .label .info > div {
left: 0px;
opacity: 1;
}
body .options .option:not(.active) {
flex-grow: 1;
border-radius: 30px;
}
body .options .option:not(.active) .shadow {
bottom: -40px;
box-shadow: inset 0 -120px 0px -120px black, inset 0 -120px 0px -100px black;
}
body .options .option .shadow {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
height: 120px;
transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
body .options .option .label {
display: flex;
position: absolute;
right: 0px;
height: 40px;
transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
}
body .options .option .label .icon {
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
min-width: 40px;
max-width: 40px;
height: 40px;
border-radius: 100%;
background-color: white;
color: var(--defaultBackground);
}
body .options .option .label .info {
display: flex;
flex-direction: column;
justify-content: center;
margin-left: 10px;
color: white;
white-space: pre;
}
body .options .option .label .info > div {
position: relative;
transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}
body .options .option .label .info .main {
font-weight: bold;
font-size: 1.2rem;
}
body .options .option .label .info .sub {
transition-delay: 0.1s;
}
</style>
<div class="options">
<div class="option active" style="--optionBackground:url(https://66.media.tumblr.com/6fb397d822f … 1_1280.jpg);">
<div class="shadow"></div>
</div>
<div class="option" style="--optionBackground:url(https://66.media.tumblr.com/8b69cdde47a … 1_1280.jpg);">
<div class="shadow"></div>
</div>
<div class="option" style="--optionBackground:url(https://66.media.tumblr.com/5af3f830345 … 1_1280.jpg);">
<div class="shadow"></div>
</div>
<div class="option" style="--optionBackground:url(https://66.media.tumblr.com/5516a22e0cd … 1_1280.jpg);">
<div class="shadow"></div>
</div>
<div class="option" style="--optionBackground:url(https://66.media.tumblr.com/f19901f50b7 … 1_1280.jpg);">
<div class="shadow"></div>
</div>
</div>
<script>
$(".option").click(function(){
$(".option").removeClass("active");
$(this).addClass("active");
});
</script>
[/html]
Отредактировано Juan Rivera (2023-01-30 21:40:36)