Joomla 5 Notice

We are pleased to announce that as of January 29, 2024, all of our Joomla extensions are compatible with Joomla 5.

For all who are still updateing from Joomla 3 to Joomla 4: Joomla 4 Migration instructions are available here:

There is now a separate Documentation for Visforms for Joomla 4 and for Visforms for Joomla 5!

Forum

Visforms Subscription user can ask questions in our forum. Please log in with the relevant user first.
Everybody can access the forum for reading.

Please only ask 1 question per topic.

Important information for almost every question:
V1: Which Visforms version is running?
V2: Which Joomla version is running?
V3: Which PHP version is running?

Due to public holidays and vacations, longer response times can be expected for inquiries in the forum between December 20, 2024 and Janaury 8, 2025.

Conditional fields & animation

More
1 year 10 months ago #8929 by Oleg
Conditional fields & animation was created by Oleg
Hi,
In default when we select an option in restricting field, then conditional field appears "instantly".
Is it possible to make animation for conditional field appearance?

More
1 year 10 months ago - 1 year 10 months ago #8931 by Administrator IV
Replied by Administrator IV on topic Conditional fields & animation
Hello Oleg,

That's a pretty idea!
You can easily achieve this with some custom CSS in Visforms.

The HTML of a conditional field with field ID=294 is:
Code:
<div class="conditional field294">  .. </div>

With this CSS you give all conditional fields a simple so-called 'fadeIn':
A 'fadeIn' consists of a panning movement and transparency.
Code:
.conditional {     animation-name: fadeIn;     animation-duration: 2s; }

With this CSS you give all conditional fields a self-defined animation:
The animation is defined with a CSS '@keyframes' rule, or the so-called 'animation code'.
Code:
@keyframes example {     from {opacity: 0;}     to {opacity: 1;} } .conditional {     animation-name: example;     animation-duration: 2s; }

You can also set individual animations for individual fields:
Example with 3 conditional fields with the IDs 292,293, 294 and 3 different animations.
Code:
@keyframes example1 {     from {background-color: red;}     to {background-color: yellow;} } @keyframes example2 {     from {opacity: 0;}     to {opacity: 1;} } .conditional.field292 {     animation-name: example1;     animation-duration: 2s; } .conditional.field293 {     animation-name: example2;     animation-duration: 2s; } .conditional.field294 {     animation-name: fadeIn;     animation-duration: 2s; }


Create custom CSS files with Visforms:
You can create custom CSS files which will be loaded automatically into your form.

To do this, simply go to the “Components->Visforms” menu in the administration and then on the “Edit CSS” button on the Visforms Dashboard. You get to a view where, like in the Joomla! UI template component, where you can edit existing CSS files, create new CSS files, upload and rename files.

The integration of additional own CSS files takes place via a simple naming convention.
Note: The files must have the character string "custom" in the file name.
Otherwise, the letters a-z, A-Z and the special characters - (minus) and _ (underscore) are permitted in the file name.

Visforms uses weak CSS selectors to blend in as well as possible to adapt to the design of the UI template.
All HTML parts of Visforms are easily addressable with rather simple CSS selectors.

Individual settings with regard to working with custom CSS are possible at various places:
- field configuration: tab 'Advanced' in section 'Layout' (especially parameters 'CSS Class For Label' and 'CSS Class For Field'),
- form configuration: tab 'Advanced' in section 'Layout' (especially parameter 'CSS Class'),
- Visforms Dashboard button 'Edit CSS': add and edit own CSS files.

Read more on this topic in our documentation:
docs.joomla-4.visforms.vi-solutions.de/e...orm-layout-with-css/

Learn more on animations at w3schools:
www.w3schools.com/css/css3_animations.asp

Kind regards, Ingmar

:idea: I recommend you the new and up-to-date documentation for Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/en/docs/
Most of this also applies retrospectively to Joomla 3.
Please only ask 1 question per topic :-).

:idea: Ich empfehle Dir die neue und aktuelle Dokumentation für Joomla 4:
docs.joomla-5.visforms.vi-solutions.de/docs/
Das meiste gilt rückwirkend auch für Joomla 3.
Bitte immer nur 1 Frage pro Thema stellen :-).
Last edit: 1 year 10 months ago by Administrator IV.

More
1 year 10 months ago #8937 by Oleg
Replied by Oleg on topic Conditional fields & animation
Hello Ingmar
Thank you for the patient explanation!
Sincerely, Oleg

Moderators: Administrator AVAdministrator IV
Powered by Kunena Forum