Hello,
how can we animate the flag icons ?
Animated icons - National Flags
Re: Animated icons
That'd be way too complicated. Ya'd have to create an animated version of every single flag.
-
- Registered User
- Posts: 1383
- Joined: Thu Sep 25, 2014 10:36 am
Re: Animated icons
Several years ago these were animated
-
- Registered User
- Posts: 733
- Joined: Tue Mar 22, 2011 9:53 pm
Re: Animated icons
Very good.... keep it up.bennybernaer wrote:Several years ago these were animated
Kindly where do I upload them ?
-
- Registered User
- Posts: 111
- Joined: Fri Aug 21, 2015 11:32 pm
Re: Animated icons
You have to change these lines in the admin_controller file of the extension
to match the flags dimensions, so probably like this
then in the ACP for the flags you have to upload each and every flag to change the flag to be used for the country.
However, loading animated flags, when you have a lot of them, will probably tax many users devices/computers. That's why static images are used.
Code: Select all
/**
* define our constants
**/
const MAX_WIDTH = 32;
const MAX_HEIGHT = 32;
Code: Select all
/**
* define our constants
**/
const MAX_WIDTH = 36;
const MAX_HEIGHT = 27;
However, loading animated flags, when you have a lot of them, will probably tax many users devices/computers. That's why static images are used.
Former Modifications/Extensions Team Member | My extensions | github | All requests for support via PM will be ignored
Appreciate the extensions/mods/support then you can support me by buying a beer
Appreciate the extensions/mods/support then you can support me by buying a beer
-
- Former Team Member
- Posts: 22099
- Joined: Wed Jun 22, 2005 4:33 pm
- Location: Your display
- Name: Rich McGirr
Re: Animated icons
Works miraculously. ThanksRMcGirr83 wrote:You have to change these lines in the admin_controller file of the extension

-
- Registered User
- Posts: 111
- Joined: Fri Aug 21, 2015 11:32 pm