preloader style : demo 272

HTML

                        

CSS

                        .loader{
                            width: 200px;
                            height: 200px;
                            margin: 0 auto;
                            position: relative;
                        }
                        .loader:before{
                            content: "";
                            background: #34b848;
                            width: 100px;
                            height: 20px;
                            transform: translateX(-50%);
                            position: absolute;
                            bottom: 0;
                            left: 50%;
                            animation: left-to-right 1s ease infinite alternate;
                        }
                        .loader .box{
                            background: #262626;
                            width: 60px;
                            height: 60px;
                            border-radius: 100%;
                            box-shadow: 15px 15px 0px rgba(0, 0, 0, .2);
                            transform: translateX(-50%);
                            position: absolute;
                            bottom: 20px;
                            left: 50%;
                            animation: turning .5s cubic-bezier(.46,.01,1,.67) infinite alternate;
                        }
                        .loader .box:before{
                            content: "";
                            background: #fff;
                            width: 25px;
                            height: 25px;
                            transform: translateX(-50%) translateY(-50%);
                            position: absolute;
                            top: 50%;
                            left: 50%;
                            animation: round 2s ease-in-out infinite alternate;
                        }
                        @keyframes left-to-right{
                            0%{
                                width: 100%;
                                border-radius: 0;
                            }
                            50%{
                                width: 100px;
                                border-radius: 20px;
                            }
                            100%{
                                width: 100%;
                                border-radius: 0;
                            }
                        }
                        @keyframes turning{
                            from{ bottom: 130px; }
                            to{ bottom: 20px; }
                        }
                        @keyframes round{
                            0%{
                                border-radius: 0 0 0 0;
                                transform: translateX(-50%) translateY(-50%) rotate(0deg);
                            }
                            25%{
                                border-radius: 50% 0 0 0;
                                transform: translateX(-50%) translateY(-50%) rotate(90deg);
                            }
                            50%{
                                border-radius: 50% 50% 0 0;
                                transform: translateX(-50%) translateY(-50%) rotate(180deg);
                            }
                            75%{
                                border-radius: 50% 50% 50% 0;
                                transform: translateX(-50%) translateY(-50%) rotate(270deg);
                            }
                            100%{
                                border-radius: 50% 50% 50% 50%;
                                transform: translateX(-50%) translateY(-50%) rotate(360deg);
                            }
                        }
                    
License Terms