From d1d0260c88bb108cdd3752a55a2d03e210a15225 Mon Sep 17 00:00:00 2001 From: Ray Date: Fri, 22 Sep 2017 22:21:59 +0100 Subject: [PATCH] replace jquery fadeOut/fadeIn with CSS3 opacity transition --- ImgHtml.cc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ImgHtml.cc b/ImgHtml.cc index 49a55fa..fbefe80 100644 --- a/ImgHtml.cc +++ b/ImgHtml.cc @@ -300,6 +300,16 @@ li.dropdown {\ @media screen and (max-width: 400px) {\ ul li { float: none; } \ }\ +.visible\ +{\ + opacity: 1;\ + transition: opacity 1s ease;\ +}\ +.faded\ +{\ + opacity: 0.2;\ + transition: opacity 1s ease;\ +}\ \n"; @@ -472,8 +482,8 @@ li.dropdown {\ const char* ImgHtmlFlexboxSlide::_jsblock() { - static const char* js = "\ -\n\n"; + static const char* js = "\n\ +\n\n"; return js; }