Skip to content

Commit

Permalink
Added animation to update button
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Sep 14, 2022
1 parent 8e23234 commit fe78560
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion resources/views/studio/theme.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,18 @@
table, th, td {
border:1px solid black;
}
.updatespin {
animation: upspin 1s linear infinite;
display:inline-block;
}
@keyframes upspin {
100% {
transform: rotate(360deg)
}
}
</style>
<br><br><br>
<details>
Expand Down Expand Up @@ -200,7 +212,8 @@
}} ?>
</table>
</div>
<a href="{{url('update/theme')}}" class="mt-3 ml-3 btn btn-info"><i class="bi bi-arrow-repeat"></i> Update all themes</a><br><br>
<a href="{{url('update/theme')}}" onclick="updateicon()" class="mt-3 ml-3 btn btn-info row"><span id="updateicon" class=""><i class="bi bi-arrow-repeat"></i></span> Update all themes</a><br><br>
<script>function updateicon() { var element = document.getElementById("updateicon"); element.classList.add("updatespin");}</script>
</details>

<?php
Expand Down

0 comments on commit fe78560

Please sign in to comment.