preloader style : demo 271

HTML

                        

CSS

                        .loader{
                            width: 80px;
                            height: 67px;
                            margin: 50px auto 0;
                            position: relative;
                        }
                        .loader .square{
                            background: #ee5253;
                            width: 50px;
                            height: 50px;
                            margin: 0 auto;
                            border-radius: 3px;
                            animation: motion 2s infinite cubic-bezier(0.89, 0.03, 0.06, 1.5);
                        }
                        .loader .path{
                            height: 10px;
                            width: 80px;
                            overflow: hidden;
                            position: absolute;
                            bottom: 0;
                            left: 0;
                        }
                        .loader .path > div{
                            background: #222;
                            width: 10px;
                            height: 10px;
                            margin: 0 15px;
                            position: absolute;
                            top: 0;
                            left: 0;
                            animation: dynamic 4s infinite cubic-bezier(0.89, 0.03, 0.06, 1.5);
                        }
                        .loader  .path > div:nth-child(1){ left: 0px; }
                        .loader .path > div:nth-child(2){ left: 40px; }
                        .loader  .path > div:nth-child(3){ left: 80px; }
                        .loader  .path > div:nth-child(4){ left: 120px; }
                        .loader  .path > div:nth-child(5){ left: 160px; }
                        .loader  .path > div:nth-child(6){ left: 200px; }
                        @keyframes motion{
                            50%{ transform: rotate(90deg); }
                            100%{ transform: rotate(180deg); }
                        }
                        @keyframes dynamic{
                            0%{ transform: translateX(0px); }
                            25%{ transform: translateX(-40px); }
                            50%{ transform: translateX(-80px); }
                            75%{ transform: translateX(-120px); }
                            100%{ transform: translateX(-160px); }
                        }
                    
License Terms