|
|
@@ -6,17 +6,16 @@ rivets.binders['src-strict'] = function(el, value) {
|
|
|
img.src = value
|
|
|
}
|
|
|
|
|
|
-rivets.binders['transition'] = function(el, value) {
|
|
|
- el.classList.add('transition');
|
|
|
- if (value) {
|
|
|
- el.classList.remove('hidden');
|
|
|
+rivets.binders['transition'] = function(el, display) {
|
|
|
+ if (display) {
|
|
|
+ el.classList.remove('hide');
|
|
|
setTimeout(function() {
|
|
|
el.classList.add('show');
|
|
|
- }, 100);
|
|
|
+ }, 0);
|
|
|
} else {
|
|
|
el.classList.remove('show');
|
|
|
setTimeout(function() {
|
|
|
- el.classList.add('hidden');
|
|
|
- }, 250);
|
|
|
+ el.classList.add('hide');
|
|
|
+ }, 200);
|
|
|
}
|
|
|
}
|