Dec 29, 2016
122 Views

Call ring css

Written by

CSS

    .nml-alo-phone.nml-alo-show {
    visibility: visible;
    }

    .nml-alo-phone {
    background-color: transparent;
    cursor: pointer;
    height: 200px;
    position: fixed;
    transition: visibility 0.5s ease 0s;
    visibility: hidden;
    width: 200px;
    z-index: 200000 !important;
    }
    .nml-alo-phone {
    top: 250px;
    right: 0px;
    }
    .nml-alo-phone.nml-alo-green .nml-alo-ph-circle {
    border-color: #87de91;
    opacity: 0.5;
    }
    .nml-alo-ph-circle {
    animation: 1.2s ease-in-out 0s normal none infinite running nml-alo-circle-anim;
    background-color: transparent;
    border: 2px solid rgba(30, 30, 30, 0.4);
    border-radius: 100%;
    height: 160px;
    left: 20px;
    opacity: 0.1;
    position: absolute;
    top: 20px;
    transform-origin: 50% 50% 0;
    transition: all 0.5s ease 0s;
    width: 160px;
    }
    .nml-alo-phone.nml-alo-show {
    visibility: visible;
    }
    .nml-alo-phone.nml-alo-green .nml-alo-ph-circle-fill {
    background-color: #9fe4a7;
    opacity: 0.75 !important;
    }
    .nml-alo-ph-circle-fill {
    animation: 2.3s ease-in-out 0s normal none infinite running nml-alo-circle-fill-anim;
    background-color: #000;
    border: 2px solid transparent;
    border-radius: 100%;
    height: 100px;
    left: 50px;
    opacity: 0.1;
    position: absolute;
    top: 50px;
    transform-origin: 50% 50% 0;
    transition: all 0.5s ease 0s;
    width: 100px;
    }
    .nml-alo-phone.nml-alo-green .nml-alo-ph-img-circle {
    background-color: #13c14a;
    }
    .nml-alo-ph-img-circle {
    animation: 1s ease-in-out 0s normal none infinite running nml-alo-circle-img-anim;
    border: 2px solid transparent;
    border-radius: 100%;
    height: 60px;
    left: 70px;
    opacity: 0.7;
    position: absolute;
    top: 70px;
    transform-origin: 50% 50% 0;
    width: 60px;
    }
    .nml-alo-ph-img-circle a img {
    padding: 4px 0 0 3px;
    }

    @keyframes nml-alo-circle-anim{
    0% {
    opacity: 0.1;
    transform: rotate(0deg) scale(0.5) skew(1deg);
    }
    30% {
    opacity: 0.5;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }

    100% {
    opacity: 0.6;
    transform: rotate(0deg) scale(1) skew(1deg);
    }}
    @-moz-keyframes nml-alo-circle-anim{
    0% {
    opacity: 0.1;
    transform: rotate(0deg) scale(0.5) skew(1deg);
    }
    30% {
    opacity: 0.5;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }

    100% {
    opacity: 0.6;
    transform: rotate(0deg) scale(1) skew(1deg);
    }}

    @-webkit-keyframes nml-alo-circle-anim{
    0% {
    opacity: 0.1;
    transform: rotate(0deg) scale(0.5) skew(1deg);
    }
    30% {
    opacity: 0.5;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }

    100% {
    opacity: 0.6;
    transform: rotate(0deg) scale(1) skew(1deg);
    }}
    @keyframes nml-alo-circle-fill-anim{
    0% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    50% {
    opacity: 0.2;
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    }
    @-moz-keyframes nml-alo-circle-fill-anim{
    0% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    50% {
    opacity: 0.2;
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    }

    @-webkit-keyframes nml-alo-circle-fill-anim{
    0% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    50% {
    opacity: 0.2;
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    opacity: 0.2;
    transform: rotate(0deg) scale(0.7) skew(1deg);
    }
    }
    @keyframes nml-alo-circle-img-anim{
    0% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    }
    @-moz-keyframes nml-alo-circle-img-anim{
    0% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    }

    @-webkit-keyframes nml-alo-circle-img-anim{
    0% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    10% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    20% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    30% {
    transform: rotate(-25deg) scale(1) skew(1deg);
    }
    40% {
    transform: rotate(25deg) scale(1) skew(1deg);
    }
    50% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    100% {
    transform: rotate(0deg) scale(1) skew(1deg);
    }
    }
0

 

HTML

<div style="right: 0px; top: 150px;" id="nml-alo-phoneIcon" class="nml-alo-phone nml-alo-green nml-alo-show">
<div class="nml-alo-ph-circle"></div>
<div class="nml-alo-ph-circle-fill"></div>
<div class="nml-alo-ph-img-circle"><a href="tel:18006319"><img alt="" src="./img/phone-ring.png" data-pin-nopin="”true”"></a></div>
</div>

 

Article Tags:
·
Article Categories:
Code/Web
    http://linholiver.com

    https://linholiver.com/diary/about/