javascript - How to make background transparent while bootstrap loader -
i want make bootstrap loading image while api returns result. how can make background transparent?
here html markup , css:
<div class="loader" ng-hide="data.length > 0"></div> <style> .loader { border: 16px solid #d4d4d4; border-radius: 50%; border-top: 16px solid #3498db; width: 120px; height: 120px; position: fixed; top:100px; bottom: 0; left: 0; right: 0; margin: auto; z-index: 99999999; -webkit-animation: spin 2s linear infinite; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style>
add background-color: transparent .loader
<div class="loader" ng-hide="data.length > 0"></div> <style> .loader { border: 16px solid #d4d4d4; border-radius: 50%; border-top: 16px solid #3498db; width: 120px; background-color: transparent; height: 120px; position: fixed; top:100px; bottom: 0; left: 0; right: 0; margin: auto; z-index: 99999999; -webkit-animation: spin 2s linear infinite; animation: spin 2s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } </style>
Comments
Post a Comment