Creating my own animated icons

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Tue Apr 29, 2014 11:49 am
Reply with quote
Report this post
I misght've just simply missed explanation of it if it does exist, if so, simply point me to the URL of it, but here's the deal: Instead of Truphy Cup I need to put "book" icon there. FontAwesome does have fa-book (), so using override.css I need to create (copypaste) class from, say icon-heart, but couldn't find the code to sample in font-awesome.css
Would you, please, help me out again?
And thanks for the template! Love it!
User avatar
Platinum Boarder

GK User
Tue Apr 29, 2014 1:40 pm
Reply with quote
Report this post
Please change icon html to this:
Code: Select all
<i class="fa fa-book"></i>

(please disable tinyMCE editor in global configuration (change editor to "editor - none") first)
If you need list of fa-book name replacement, please check this url:
http://fortawesome.github.io/Font-Awesome/icons/
User avatar
Moderator

GK User
Tue Apr 29, 2014 4:21 pm
Reply with quote
Report this post
[quote="Cyberek"]Please change icon html to this:
Code: Select all
<i class="fa fa-book"></i>


Do you mean to say, that in this template classes are already created for all font-awesome vectors? If so, that's just rocking great!
User avatar
Platinum Boarder

GK User
Tue Apr 29, 2014 7:20 pm
Reply with quote
Report this post
Yes, font awesome stylesheet is included by default :).
User avatar
Moderator

GK User
Wed Apr 30, 2014 12:27 am
Reply with quote
Report this post
Cyberek wrote:Please change icon html to this:
Code: Select all
<i class="fa fa-book"></i>

(please disable tinyMCE editor in global configuration (change editor to "editor - none") first)
If you need list of fa-book name replacement, please check this url:
http://fortawesome.github.io/Font-Awesome/icons/


Ok, Cyberek, I've tried it - it places static icon (which is great anyway, thanks!), but I was asking for sample code to recreate my own ANIMATED icons. Just tell me which CSS the ones created by you are in, and I'll get from there on my own.
Thanks.
User avatar
Platinum Boarder

GK User
Fri May 02, 2014 6:45 pm
Reply with quote
Report this post
Please check gk.stuff.css for blocks like this one:
Code: Select all
.big-title .header .gk-icon-pencil {
   display: inline-block;
   opacity: 0;
   position: relative;
   left: 80px;
   -webkit-transition: all .75s cubic-bezier(0,.54,.15,.98);
   -moz-transition: all .75s cubic-bezier(0,.54,.15,.98);
   -ms-transition: all .75s cubic-bezier(0,.54,.15,.98);
   -o-transition: all .75s cubic-bezier(0,.54,.15,.98);
   transition: all .75s cubic-bezier(0,.54,.15,.98);
   -webkit-transition-delay: .4s;
   -moz-transition-delay: .4s;
   -ms-transition-delay: .4s;
   -o-transition-delay: .4s;
   transition-delay: .4s;
}
User avatar
Moderator

GK User
Fri May 02, 2014 6:46 pm
Reply with quote
Report this post
Or this one which uses custom keyframes:
Code: Select all
.big-title .header[data-scroll-reveal-complete="true"] .gk-icon-flame,
.big-title .header[data-scroll-reveal-complete="true"] .gk-icon-heart,
.big-title .header[data-scroll-reveal-complete="true"] .gk-icon-star {
   display: inline-block;
   -webkit-animation: iconscale 1.2s 1 linear;
   -moz-animation: iconscale 1.2s 1 linear;
   -o-animation: iconscale 1.2s 1 linear;
   animation: iconscale 1.2s 1 linear;
   -webkit-transform-origin: center 100%;
   -moz-transform-origin: center 100%;
   -ms-transform-origin: center 100%;
   -o-transform-origin: center 100%;
   transform-origin: center 100%;
}
User avatar
Moderator


cron