Skip to content

Commit 2dc05c3

Browse files
committed
Latest CSS styling and UI improvements - ready to release!
1 parent fd93841 commit 2dc05c3

File tree

4 files changed

+28
-9
lines changed

4 files changed

+28
-9
lines changed

mod_grid_gk5/scripts/engine.jquery.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ jQuery(window).load(function(){
55
var animation = el.attr('data-animation');
66
var animation_random = el.attr('data-random');
77
var animation_speed = el.attr('data-speed') == 'normal' ? 500 : (el.attr('data-speed') == 'fast') ? 250 : 750;
8+
var animation_divider = el.attr('data-speed') == 'normal' ? 4 : (el.attr('data-speed') == 'fast') ? 2 : 6;
89
var animation_type = el.attr('data-type');
910

1011
if(animation === '1') {
@@ -13,7 +14,7 @@ jQuery(window).load(function(){
1314
if(animation_random === '0') {
1415
// linear
1516
for(var i = 0, len = blocks.length; i < len; i++) {
16-
gkGridGK5AddClass(jQuery(blocks[i]), 'active', i * (animation_speed / 2.0));
17+
gkGridGK5AddClass(jQuery(blocks[i]), 'active', i * (animation_speed / animation_divider));
1718
}
1819
} else { // or random animation
1920
var randomVector = [];
@@ -23,7 +24,7 @@ jQuery(window).load(function(){
2324
randomVector = gkGridGK5Shuffle(randomVector);
2425
//
2526
for(var j = 0, len = blocks.length; j < len; j++) {
26-
gkGridGK5AddClass(jQuery(blocks[randomVector[j]]), 'active', j * (animation_speed / 2.0));
27+
gkGridGK5AddClass(jQuery(blocks[randomVector[j]]), 'active', j * (animation_speed / animation_divider));
2728
}
2829
}
2930
}

mod_grid_gk5/scripts/engine.mootools.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ window.addEvent('load', function(){
44
var animation = el.getProperty('data-animation');
55
var animation_random = el.getProperty('data-random');
66
var animation_speed = el.getProperty('data-speed') == 'normal' ? 500 : (el.getProperty('data-speed') == 'fast') ? 250 : 750;
7+
var animation_divider = el.getProperty('data-speed') == 'normal' ? 4 : (el.getProperty('data-speed') == 'fast') ? 2 : 6;
78
var animation_type = el.getProperty('data-type');
89

910
if(animation === '1') {
@@ -12,7 +13,7 @@ window.addEvent('load', function(){
1213
if(animation_random === '0') {
1314
// linear
1415
for(var i = 0, len = blocks.length; i < len; i++) {
15-
gkGridGK5AddClass(blocks[i], 'active', i * (animation_speed / 2.0));
16+
gkGridGK5AddClass(blocks[i], 'active', i * (animation_speed / animation_divider));
1617
}
1718
} else { // or random animation
1819
var randomVector = [];
@@ -22,7 +23,7 @@ window.addEvent('load', function(){
2223
randomVector = gkGridGK5Shuffle(randomVector);
2324
//
2425
for(var j = 0, len = blocks.length; j < len; j++) {
25-
gkGridGK5AddClass(blocks[randomVector[j]], 'active', j * (animation_speed / 2.0));
26+
gkGridGK5AddClass(blocks[randomVector[j]], 'active', j * (animation_speed / animation_divider));
2627
}
2728
}
2829
}

mod_grid_gk5/styles/loader.gif

1.17 KB
Loading

mod_grid_gk5/styles/style.css

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,25 @@
88

99
.gkGridGK5 {
1010
overflow: hidden;
11+
-webkit-transform: translate3d(0, 0, 0);
12+
-moz-transform: translate3d(0, 0, 0);
13+
-ms-transform: translate3d(0, 0, 0);
14+
-o-transform: translate3d(0, 0, 0);
15+
transform: translate3d(0, 0, 0);
16+
}
17+
18+
@-moz-document url-prefix() {
19+
.gkGridGK5 {
20+
-webkit-transform: translate3d(0, 0, 0) scale(1.00001);
21+
-moz-transform: translate3d(0, 0, 0) scale(1.00001);
22+
-ms-transform: translate3d(0, 0, 0) scale(1.00001);
23+
-o-transform: translate3d(0, 0, 0) scale(1.00001);
24+
transform: translate3d(0, 0, 0) scale(1.00001);
25+
}
1126
}
1227

1328
.gkGridGK5Wrap {
29+
background: url('loader.gif') no-repeat center center;
1430
-webkit-perspective: 1200;
1531
-moz-perspective: 1200;
1632
-ms-perspective: 1200;
@@ -36,11 +52,11 @@
3652
-ms-transition-property: all;
3753
-o-transition-property: all;
3854
transition-property: all;
39-
-webkit-transition-timing-function: ease-out;
40-
-moz-transition-timing-function: ease-out;
41-
-ms-transition-timing-function: ease-out;
42-
-o-transition-timing-function: ease-out;
43-
transition-timing-function: ease-out;
55+
-webkit-transition-timing-function: cubic-bezier(.31,.77,.46,.92) ;
56+
-moz-transition-timing-function: cubic-bezier(.31,.77,.46,.92) ;
57+
-ms-transition-timing-function: cubic-bezier(.31,.77,.46,.92) ;
58+
-o-transition-timing-function: cubic-bezier(.31,.77,.46,.92) ;
59+
transition-timing-function: cubic-bezier(.31,.77,.46,.92) ;
4460
z-index: 1;
4561
}
4662

@@ -158,3 +174,4 @@
158174
* Additional styles for modules inside the GK Grid
159175
*/
160176

177+
/* Coming soon */

0 commit comments

Comments
 (0)