• JUser: :_load: No se ha podido cargar al usuario con 'ID': 187

Header animation

The header animation is based on our simple CSS animation engine, which uses a simple JavaScript code

Our simple animation engine is based on the data-* attributes.

For creating animation please creata a container with class gk-animation and put elements inside it. We recommend to style these elements in the css/gk.stuff.css file.

You have to specify for every element at least two attributes: data-start and data-end. The first attribute contains starting properties for the element and these properties should be written with units. The second attribute specify which properties will be animated and what will be their final value (without units).

There are also two additional attributes: data-time and data-delay. The data-time attribute specify the time of the animation in miliseconds. The second attribute specify the time of delay for animation of the specific element (of course in the miliseconds).

The very important is fact that the content of the data-start attribute specify the start position of the animated element and all elements should be hidden at start using in example {'opacity': 0} at the data-start attribute.

Let's analyze a simple example:

<div class="gk-animation" data-height="530">
 <div class="gk-animation-wrap">
   <h2 class="gk-scale-up" data-start="{opacity:1}" data-end="{opacity:1}" data-delay="200" data-time="500">Festival 21 jul. - 27 Jul. 2020</h2>
   <h1 class="gk-scale-up" data-start="{opacity:0}" data-end="{opacity:1}" data-delay="600" data-time="500">Sayary Llaqta</h1>
   <div class="gk-stars" data-start="{opacity:0}" data-end="{opacity:1}" data-delay="1000" data-time="500">* * * * * *</div>

As you can see the animation engine needs two basic wrappers - gk-animation and gk-animation-wrap. The animation will start with using opacity for animation after 200ms and with duration 500ms for the h2 element. Then (after 400ms - it is a difference between date-delay for both elements) animation will start for the h1 element also with duration 500ms. At the end the .gk-stars element will be animated.

We have also included additional class gk-scale-up which can be used for elements which will be scaled from 0 to 100% of their original size using the CSS3 transform property. We have to move this animation to the CSS code due problems with prefixed properties in the MooTools code.

It is worth to mention that some elements can be also animated in two other states of the animation - the gk-animation container changes his CSS classes - after loading the page the "loaded" class is added and after displaying the whole container the "displayed" class is added. We have used this mechanism for animating the .gka-background element in our header animation.

Responsive layout

Please remember that you have to scale down all your header elements for the tablet and mobile devices - please use for it the css/tablet.css and css/mobile.css files.


We have implemented our own implementation of the countdown. It is very simple to implement:

    class="gk-jscounter gk-scale-up" 
"Para seguir cantando"

Te idea of the counter is simple - the content of the gk-jscounter element will be displayed when the counting will be finished. To specify the time for countdown you have to specify it in the two attributes - data-dateend and data-timeend. The first attribute is used to specify the end date (in format D-M-Y) and the second attribute is used to specify the end time (in format h:m).

Very important fact - if you're using not the UTC time, please specify the data-timezone attribute - it will guarantee that the time will be calculated correctly for all users.

The rest of the data-* attributes was described in the previous paragraphs as a part of the animation engine.

Last modified onJueves, 16 Julio 2020 01:01

More in this category: « Typography


  • 플래티넘 카지노 플래티넘 카지노

    Please let me know if you're looking for a article writer for your blog.
    You have some really great articles and I think I would be a good asset.
    If you ever want to take some of the load off, I'd love to write some articles for your
    blog in exchange for a link back to mine. Please send me an e-mail if interested.

    Lunes, 16 Mayo 2022 08:18 Comment Link
  • 저녁 메뉴 추천 룰렛 저녁 메뉴 추천 룰렛

    fantastic put up, very informative. I'm wondering why the opposite experts
    of this sector do not understand this. You must proceed your writing.
    I am confident, you have a great readers' base already!

    Lunes, 16 Mayo 2022 07:30 Comment Link
  • 샤오 미 먹튀 샤오 미 먹튀

    Whats up are using Wordpress for your site platform? I'm new to the blog world but I'm trying
    to get started and set up my own. Do you need any html coding knowledge
    to make your own blog? Any help would be greatly appreciated!

    Domingo, 15 Mayo 2022 00:29 Comment Link
  • titanium wedding bands titanium wedding bands

    I'm gone to inform my little brother, that he should also pay a visit this webpage on regular basis to obtain updated from newest

    Sábado, 14 Mayo 2022 08:09 Comment Link
  • SM 카지노 보증금 3000만원 SM 카지노 보증금 3000만원

    Saved as a favorite, I really like your web site!

    Sábado, 14 Mayo 2022 03:05 Comment Link
  • 샌즈카지노 보증금 2억원 샌즈카지노 보증금 2억원

    fantastic post, very informative. I wonder why the opposite specialists of this sector don't notice this.
    You must continue your writing. I'm confident, you've a great
    readers' base already!

    Viernes, 13 Mayo 2022 20:12 Comment Link
  • 올인 구조대 주소 올인 구조대 주소

    When I originally commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four emails with the
    same comment. Is there any way you can remove me from that service?
    Appreciate it!

    Viernes, 13 Mayo 2022 18:25 Comment Link
  • 라이브 바카라 라이브 바카라

    That is really attention-grabbing, You are an excessively
    skilled blogger. I have joined your feed
    and sit up for in the hunt for extra of your wonderful post.

    Additionally, I have shared your web site in my social networks

    Viernes, 13 Mayo 2022 05:41 Comment Link
  • p1210868 p1210868

    who kratom news maeng da kratom capsules review

    Viernes, 13 Mayo 2022 02:01 Comment Link
  • 바카라조작 바카라조작

    I've learn some excellent stuff here. Certainly worth bookmarking for revisiting.

    I wonder how a lot effort you put to make any such wonderful informative web site.

    Jueves, 12 Mayo 2022 21:15 Comment Link

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

back to top