Disable data-scroll-reveal
Rate this topic: 1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Aug 25, 2014 2:38 pm
- Reply with quote
- Report this post
Hi there
Unfortunately my client doesn't like the "flying-in" titles and stuff...
Could you please tell me where I can disable this function for modules with "big-title" suffix. I couldn't find anything neither in html\com_custom nor in the most common stylesheets like gkstuff or template... And as well for the contact form which flies in from right, how can I disable that?
http://www.damitten.ch
Thanks and kind regards,
emarbee
Unfortunately my client doesn't like the "flying-in" titles and stuff...
Could you please tell me where I can disable this function for modules with "big-title" suffix. I couldn't find anything neither in html\com_custom nor in the most common stylesheets like gkstuff or template... And as well for the contact form which flies in from right, how can I disable that?
http://www.damitten.ch
Thanks and kind regards,
emarbee
-
- Senior Boarder
- GK User
- Tue Aug 26, 2014 4:24 pm
- Reply with quote
- Report this post
Hello,
The easiest way to disable this effect will be removing the following code from the layouts/default.php file:
The easiest way to disable this effect will be removing the following code from the layouts/default.php file:
- Code: Select all
<script type="text/javascript">
if(window.getSize().x > 600) {
document.getElements('.title-left .header').setProperty('data-scroll-reveal', 'enter left and move 50px over 0.45s').addClass('scroll-revealed');
document.getElements('.title-right .header').setProperty('data-scroll-reveal', 'enter right and move 50px over 0.45s').addClass('scroll-revealed');
document.getElements('.big-title .header').each(function(header, i) {
if(!header.hasClass('scroll-revealed') && !header.getProperty('data-scroll-reveal')) {
header.setProperty('data-scroll-reveal', 'enter from the top and move 50px over 0.45s').addClass('scroll-revealed');
}
});
window.scrollReveal = new scrollReveal();
}
</script>
-
- Administrator
- GK User
- Wed Aug 27, 2014 7:03 am
- Reply with quote
- Report this post
Hi dziudek
Ok thanks very much for your help, I just commented it out, in case the client want's it back
Regards,
emarbee
Ok thanks very much for your help, I just commented it out, in case the client want's it back
Regards,
emarbee
-
- Senior Boarder
3 posts
• Page 1 of 1