Ana içeriğe atla

İNSTAGRAM LİKE ANİMATİON

HTML
 <div class="device">
    <div class="screen">
        <input type="checkbox" id="like" />
        <label for="like">Like Something</label>
        <div class="heart"></div>
    </div>
</div>

CSS
$gray-light: #ebebeb;
$red: #f45b69;
$blue-light: #59c3c3;
$nav-width: 22.25rem;

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    background-color: $gray-light;
    color: #4e6cba;
    display: flex;
    justify-content: center;
    align-items: center;
}

.device {
    background-color: #fff;
    width: 403px;
    height: 830px;
    border-radius: 58px;
    box-shadow: 0 3px 9px 0 rgba(0, 0, 0, 0.16), 0 16px 25px 0 rgba(0, 0, 0, 0.18),
        inset 0 -6px 10px 0 rgba(0, 0, 0, 0.08);
    border-radius: 58.64px;
}

.screen {
    background-color: #eef1f8;
    position: relative;
    overflow: hidden;
    width: calc(100% - (18px * 2));
    height: calc(100% - (18px * 2));
    margin: 18px;
    border-radius: 39px;

    &:after {
        background: #ffffff;
        border-radius: 0 0 22px 22px;
        content: '';
        width: 200px;
        height: 28px;
        top: 0;
        position: absolute;
        left: 50%;
        margin-left: -100px;
        z-index: 2;
    }
}

.screen {
    display: flex;
    justify-content: center;
    align-items: center;
}

label {
    border: solid 1px $gray-light;
    cursor: pointer;
    position: inherit;
    align-self: flex-end;
    margin-bottom: 1rem;
    padding: 1rem;
    transition: all 250ms ease;
    border-radius: 0.25rem;
}

$heart-size: 100px;

.heart {
    background-color: $red;
    display: inline-block;
    height: $heart-size;
    position: relative;
    transform: rotate(-45deg);
    opacity: 0;
    width: $heart-size;
    position: absolute;

    &:before,
    &:after {
        content: '';
        background-color: $red;
        border-radius: 50%;
        height: $heart-size;
        position: absolute;
        width: $heart-size;
    }
    &:before {
        top: -($heart-size / 2);
        left: 0;
    }
    &:after {
        left: $heart-size / 2;
        top: 0;
    }
}

input[type='checkbox'] {
    visibility: hidden;
    position: absolute;

    &:checked + label {
        background-color: $red;
        color: white;

        & + .heart {
            animation: like-heart-animation 1000ms ease-in-out;
        }
    }
}

@keyframes like-heart-animation {
    15% {
        opacity: 0.9;
        transform: scale(1.2) rotate(-45deg);
    }
    30% {
        transform: scale(0.95) rotate(-45deg);
    }
    45%,
    80% {
        opacity: 0.9;
        transform: scale(1) rotate(-45deg);
    }
}

Yorumlar

POPULER YAYINLAR

FORZA HORİZON MENÜ

HTML .background .container    .container--logo       img(src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/545665/9abd53b9-dc42-459a-b094-14d064efb37e%20(1).png")    .container--navigation       .item--link.hint lb       .item--link.active home       .item--link horizon life          .item--notification 6       .item--link team adventure       .item--link creative hub       .item--link cars          .item--notification 2       .item--link rivals       .item--link clubs       .item--link marketplace       .item--link.hint rb    .container--top-menu       .container--card-spot.size-1          .container--card.border             .item--card-image(style="background-image: url(https://s3-us-west-2.amazonaws.com/s.cdpn.io/545665/Screen%20Shot%202019-01-03%20at%208.30.53%20PM.png)")              .container--card--text                .item--notification 2                .item--icon #[i.fa.fa-check-circle-o]                .item--card-title #[.text car mastery]            

C# OTOBÜS PROGRAMI.EXE

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace otobüs {     public partial class Form1 : Form    {         public Form1()        {            InitializeComponent();        }         private void button11_Click( object sender, EventArgs e)        {            listBox1.Items.Add( &9& );            listBox1.Items.Add(textBox3.Text);            listBox1.Items.Add(textBox2.Text);            listBox1.Items.Add(textBox1.Text);            listBox1.Items.Add(comboBox3.Text);        }         private void button3_Click( object sender, EventArgs e)        {            listBox1.Items.Add( &1& );            listBox1.Items.Add(textBox3.Text);            listBox1.Items.Add(textBox2.Text);            listBox1.Items.Add(textBox1.Text);            listBox1.Items.Add(comboBox1.Text);            listBo

JAVASCRİPT ÖRNEKLERİ 1

Bu sayfada 40’dan fazla çeşitli zorluk seviyesine göre hazırlanmış   JavaScript Örnekleri  ve  JavaScript Uygulamaları nı kapsamaktadır.  Basit, Döngülü, Şartlı ve Form uygulamalarını kapsayacak şekilde javascript  örnek uygulamalarını kopyalayıp kullanabilirsiniz. JavaScript Örneklerine geçmeden önce javascript dili hakkında kısaca bir bilgi vermek gerekir. Yada JavaScript dili, yapısı ve nesneleri ile ilgili derslere göz atmak içinde  JavaScript Dersleri  yazısını okuyabilirsiniz. JavaScript Nedir Başlangıçta  Brendan Eich  tarafından geliştirilmiş ve  ilk LiveScript olarak isimlendirilen programlama dili olan JavaScript, 1995 yılında yeniden adlandırılmıştır. JavaScript, bir web tasarımcısına kendi web sayfalarına kod ekleme olanağı veren, yorumlanmış bir istemci tarafı kodlama dili olmuştur.  JavaScript genellikle bir HTML  dosyasına yerleştirilir ve doğrudan web sayfasından çalışır. Saat ve tarihe basmak, bir takvim oluşturmak veya düz HTML ile mümkün olmayan diğer görevleri yapma