[mirotak] - add spin animation to room generate button

This commit is contained in:
Miroslav Pejic
2026-04-01 00:52:17 +02:00
parent d01c40c243
commit 99f12e1bae
9 changed files with 32 additions and 9 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
# ====================================================
# MiroTalk P2P v.1.7.81 - Environment Configuration
# MiroTalk P2P v.1.7.82 - Environment Configuration
# ====================================================
# App environment
+1 -1
View File
@@ -2,7 +2,7 @@
/**
* ==============================================
* MiroTalk P2P v.1.7.81 - Configuration File
* MiroTalk P2P v.1.7.82 - Configuration File
* ==============================================
*
* This file is the central configuration source.
+1 -1
View File
@@ -45,7 +45,7 @@ dependencies: {
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.7.81
* @version 1.7.82
*
*/
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "mirotalk",
"version": "1.7.81",
"version": "1.7.82",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "mirotalk",
"version": "1.7.81",
"version": "1.7.82",
"license": "AGPL-3.0",
"dependencies": {
"@mattermost/client": "11.5.0",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "mirotalk",
"version": "1.7.81",
"version": "1.7.82",
"description": "A free WebRTC browser-based video call",
"main": "server.js",
"scripts": {
+17
View File
@@ -1488,6 +1488,23 @@ textarea.form-input {
color: #376df9;
}
.room-gen-btn.spin {
animation: roomGenSpin 0.5s cubic-bezier(0.4, 0, 0.2, 1);
color: #4678f9;
}
@keyframes roomGenSpin {
0% {
transform: translateY(-50%) rotate(0deg) scale(1);
}
50% {
transform: translateY(-50%) rotate(180deg) scale(1.25);
}
100% {
transform: translateY(-50%) rotate(360deg) scale(1);
}
}
@media (max-width: 640px) {
.form-group-desktop .form-input {
margin-bottom: 12px;
+1 -1
View File
@@ -107,7 +107,7 @@ let brand = {
},
about: {
imageUrl: '../images/mirotalk-logo.gif',
title: 'WebRTC P2P v1.7.81',
title: 'WebRTC P2P v1.7.82',
html: `
<button
id="support-button"
+2 -2
View File
@@ -15,7 +15,7 @@
* @license For commercial use or closed source, contact us at license.mirotalk@gmail.com or purchase directly from CodeCanyon
* @license CodeCanyon: https://codecanyon.net/item/mirotalk-p2p-webrtc-realtime-video-conferences/38376661
* @author Miroslav Pejic - miroslav.pejic.85@gmail.com
* @version 1.7.81
* @version 1.7.82
*
*/
@@ -14599,7 +14599,7 @@ function showAbout() {
Swal.fire({
background: swBg,
position: 'center',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.81',
title: brand.about?.title && brand.about.title.trim() !== '' ? brand.about.title : 'WebRTC P2P v1.7.82',
imageUrl: brand.about?.imageUrl && brand.about.imageUrl.trim() !== '' ? brand.about.imageUrl : images.about,
customClass: { image: 'img-about' },
html: `
+6
View File
@@ -194,8 +194,14 @@ const adultCnt = document.getElementById('adultCnt');
if (genRoomButton) {
genRoomButton.onclick = (e) => {
genRoomButton.classList.remove('spin');
void genRoomButton.offsetWidth;
genRoomButton.classList.add('spin');
genRoom();
};
genRoomButton.addEventListener('animationend', () => {
genRoomButton.classList.remove('spin');
});
}
if (joinRoomButton) {