Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Bug reports and fixes
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Page transitions module/plugin ?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Page transitions module/plugin ? (Read 3935 times)
armpouniotis
Sr. Member
Posts: 377
Page transitions module/plugin ?
«
on:
September 19, 2021, 15:44:32 »
Hi there !
is there any module/plugin for page transitions ?
or
can you recommend me any website with codes, which offers something like that ?
Thank you in advance
Christos
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10357
Re: Page transitions module/plugin ?
«
Reply #1 on:
September 20, 2021, 15:03:55 »
You can have transitions by adding just a few lines of CSS in template's CSS file (or, better, in userconfig.css - Elxis 5.2). If you write what exactly you want to do I can write you the code.
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: Page transitions module/plugin ?
«
Reply #2 on:
September 20, 2021, 18:35:34 »
Hi there !
maybe some fade in - fade out transition.
I really don't know what kind of transition exist !
How can you do that using css ?
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10357
Re: Page transitions module/plugin ?
«
Reply #3 on:
September 20, 2021, 20:37:23 »
With
transition
and
animation
you can do anything. Transitions apply on element properties (any property), for example width, background-colour, etc. Animation allows you to move (and much more) an element and gives you excellent control over it. Here are some examples.
EXAMPLE 1 / transition
Change opacity (fade) on mouse over. HTML:
<div class="myfade">TEST A</div>
CSS:
.myfade { padding: 20px; margin: 10px 0; box-sizing: border-box; background: red; color: #FFFFFF; opacity:1; transition: opacity 1s; }
.myfade:hover { opacity:0.2; }
EXAMPLE 2 / transition
Resize (reduce width) on mouse over. HTML:
<div class="shrink">TEST B</div>
CSS:
.shrink { padding: 20px; margin: 10px 0; box-sizing: border-box; background: red; color: #FFFFFF; width: 100%; transition: width 1s; }
.shrink:hover { width:50%; }
EXAMPLE 3 / animation
Change background colour on mouse over. HTML:
<div class="switchcolour">TEST C</div>
CSS:
.switchcolour { padding: 20px; margin: 10px 0; box-sizing: border-box; background: red; color: #FFFFFF; }
.switchcolour:hover { animation: colourize 3s infinite; }
@keyframes colourize {
0% { background:red; }
33% { background:yellow; }
67% { background:orange; }
100% { background:red; }
}
Test it live in codepen
Link to W3 Schools / Transition
Link to W3 Schools / Animation
There are unlimited things you can do. The on mouse over event used above is just an example in order to better see the change. If you have something specific in mind write it and I will give you instructions.
«
Last Edit: September 20, 2021, 20:46:41 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: Page transitions module/plugin ?
«
Reply #4 on:
September 20, 2021, 22:12:12 »
These are lovely animations,
but,
what about if I click on a category on the menu, e.g. I am in Home page, and I click "Contact" to go to contact page.
Is there any page transition or effect for that ?
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10357
Re: Page transitions module/plugin ?
«
Reply #5 on:
September 21, 2021, 09:23:15 »
And what you want to do in this case? Animate something? Fade? What?
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: Page transitions module/plugin ?
«
Reply #6 on:
September 21, 2021, 10:36:32 »
Let's say, fade or animate the whole screen !
By clicking a menu item, the whole screen could just slide left, and the new page appears !
Christos
Logged
Christos Armpouniotis
datahell
Elxis Team
Hero Member
Posts: 10357
Re: Page transitions module/plugin ?
«
Reply #7 on:
September 21, 2021, 19:34:45 »
If you want to load a brand new page the browser needs to refresh the whole page, you cannot make a css or javascript transition from one page to the other because on each page the browser re-builts the page from scratch and everything re-initializes. What you can do is to use a pre-loader that might look like as a slider although it will not be from one page to the other but something else (e.g. from a loading screen to the loaded page). BTW I don't find this a good idea.
The effects work on html elements existing on a page. The contents of these elements can be changed using AJAX or simple javascript. If you want to click a menu item and display something new you can do it with AJAX and off-course use fade, animation, etc, but you will not refresh the whole page but only a portion of it. This portion can be almost everything on the page but the page it self will not be refreshed (the URL will not change). The browser will show you that you are still on the same page.
Here is a sample I made
when a menu item gets clicked leads to change of the displayed data using an animation. However the page remains the same although it has different contents.
«
Last Edit: September 21, 2021, 19:55:28 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
armpouniotis
Sr. Member
Posts: 377
Re: Page transitions module/plugin ?
«
Reply #8 on:
September 21, 2021, 23:30:57 »
ok !
thank you for your advise !
I will make a research about it !
cheers !
Logged
Christos Armpouniotis
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Page transitions module/plugin ?