Ana içeriğe atla

JAVASCRİPT ANIMATION

HTML CODES  :

<div id="container">
        <div id="bot-container" onclick="show();">

            <div id="text">JS</div>
                <div class="loader a1"></div>
                <div class="loader a2"></div>
                <div class="loader a3"></div>
                <div class="loader a4"></div>
        </div>
    </div>

CSS CODES :

body{
    margin:0;
    padding:0;
}
#container {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #3c005b;
    background: -webkit-radial-gradient(center, ellipse cover, #4e4343 1%,#1a1a1a   100%);
    background: -moz-radial-gradient(center, ellipse cover, ##333333 1%,#0d0011 100%);
}
#bot-container {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    width: 34vh;
    height: 34vh;
    margin-left: -17vh;
    margin-top: -17vh;
    overflow: hidden;
    transition: background-color 500ms;
    cursor: pointer;
}
#text {
    position: absolute;
    left: 2vh;
    top: 2vh;
    width: 30vh;
    height: 30vh;
    background: linear-gradient(135deg, #333333 0%,#1a1a1a 100%);
    font-family: Trebuchet MS;
    font-size: 20vh;
    font-weight: bold;
    color: #aa9600;
    text-align: center;
    line-height: 30vh;
}
.loader {
    display: block;
    position: absolute;
    background-color: #aa9600;
}
.a1 {
    left: 2vh;
    top: 0;
    height: 2vh;
    width: 0;
    animation: ani1 1s linear forwards infinite;
}
.a2 {
    right: 0;
    top: 2vh;
    width: 2vh;
    height: 0;
    animation: ani2 1s linear forwards infinite;
    animation-delay: 0.5s;
}
.a3 {
    right: 2vh;
    bottom: 0;
    height: 2vh;
    width: 0;
    animation: ani3 1s linear forwards infinite;
}
.a4 {
    left: 0;
    bottom: 2vh;
    width: 2vh;
    height: 0;
    animation: ani4 1s linear forwards infinite;
    animation-delay: 0.5s;
}
@keyframes ani1{
  50%{width:32vh; margin-left:0;}
  100%{margin-left:32vh;}
}

@keyframes ani2{
  50%{height:32vh; margin-top:0;}
  100%{margin-top:32vh;}
}

@keyframes ani3{
  50%{width:32vh; margin-right:0;}
  100%{margin-right:32vh;}
}

@keyframes ani4{
  50%{height:32vh; margin-bottom:0}
  100%{margin-bottom:32vh;}


JavaScript CODES :

var screen = false;

        function show() {
            screen = !screen;
            document.getElementById("bot-container").style.backgroundColor = screen ? "#aa9600" : "transparent";
        }


Codepen : https://codepen.io/UmutYurdugulCode/pen/byRWra

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