Good morning, we hope you slept well.

Go to the top? Go to the bottom? Send us an email! Follow us on Twitter Grab our feed

How to add sIFR to your website

OK, I have recently had quite a few emails regarding the implementation of sIFR throughout our website and various visitors seem to be struggling with sIFR in their own website. So I have decided to give a basic run down of how I used sIFR on the iKreativ site.

Firstly, I decided to use sIFR 3 r436 which can be found over at Novemberborn.

Once you have downloaded and uncompressed the package the first thing you need to do is to open the ’sifr.fla’ in Flash, double click on the stage and then choose the font you’d like to use from the text panel. Once you have done this export your Flash movie the usual way. I decided to save my Flash movie with the same name of the font I used for future reference.

Next you need to edit the ’sifr-config.js’ file to suit your needs. The basics I used are set out below:

  1.  
  2.  
  3. var yourflashfontfile = { src: ‘yourflashfontfile.swf’ };
  4.  
  5. sIFR.activate( yourflashfontfile );
  6.  
  7. sIFR.replace(yourflashfontfile, {
  8.  
  9. selector: ‘h1′,
  10.  
  11. wmode: ‘transparent’,
  12.  
  13. css: [
  14.  
  15. '.sIFR-root {
  16.  
  17. color: #ffffff;
  18.  
  19. }'
  20.  
  21. ],
  22.  
  23. filters: {
  24.  
  25. DropShadow:
  26.  
  27. {
  28.  
  29. knockout: false,
  30.  
  31. distance: 6,
  32.  
  33. color: ‘#000000′,
  34.  
  35. alpha: ‘.35′,
  36.  
  37. strength: 1
  38.  
  39. }
  40.  
  41. }
  42.  
  43. }
  44.  
  45. );
  46.  
  47.  

Obviously adjust the above settings to suit your needs. I’ll quickly try to explain the above code.

‘var’ -  Sets the variable for your font file.

’sIFR.activate’ -  Does what it say’s, activates your font file to be used.

’sIFR.replace’ – Replaces the selector with your font file.

’selector’ – The element you want sIFR to replace.

‘filters’ – I have used the filters to add drop shadows to my sIFR headings. You can use these settings, play with them to get the look you want, or remove them all together, it’s up to you!

Finally you need to upload the files to your web server and reference all the relevant files within your web design page. The files you need to reference are the sIFR stylesheet, sIFR JavaScript, and sIFR JavaScript Config as follows:

  1.  
  2.  
  3. <script src="sifr.js" type="text/javascript"></script>
  4.  
  5. <script src="sifr-config.js" type="text/javascript"></script>
  6.  
  7.  

And that’s basically it, if all went well you should now have some sweet sIFR typography. Remember, sIFR is ideal for heading’s, and title’s, it wasn’t meant to be used on full paragraph’s.

I’m not a sIFR expert, this is just the way I did it, if I missed anything out please let me know.If you have any further problems I’ll try to help the best I can, alternatively you can view the official sIFR Documentation.




Leave a comment:



By submitting a comment here you grant iKreativ a perpetual license to reproduce your words, name and/or website in attribution. Inappropriate comments will be removed at admin's discretion.