About design and nearby

Smooth Scrolling with jQuery

Posted: December 24th, 2012 | Author: | Filed under: Tips and Tricks | Tags: , , | 4 Comments »

If you ever have to read a long document, scrolling all the way through it to find what you need can be annoying. This case a smooth scroller seems to be a solution, it helps with navigation and you enhance usability on the website with sleek navigation controls.

As for my mind, such sweet )) scrolling is fine for pages which list all links at the top and the relevant content – below (FAQ pages, Terms pages) or ‘back to top’ links.

This technique is based on the jQuery library.

There are 2 parts of scrolling script: the first script is for scrolling to the very top of the page and the second one – to scroll to the certain place of the page.

1. Scroll the page to the top

At the body section I defined elements with class ‘anchorLink’:

  1. <a href="#" class="anchorLink">Top &uarr;</a>

When the link with the class ‘anchorLink’ is clicked, the smooth scroll effect is created using the scrollTop function (I set the speed as ‘slow’):

  1. $(".anchorLink").click(function () {
  2.          $("html, body").animate({ scrollTop: 0 }, "slow");
  3.          return false; // prevents the default action of the event being triggered
  4. });

Read the rest of this entry »

Detecting Browser Window Size/ Resize with jQuery

Posted: November 8th, 2012 | Author: | Filed under: Tips and Tricks | Tags: , , , | 3 Comments »

Once I have been playing around with the responsive design for a WordPress-powered website. I should detect window/ browser size with jQuery and hide the certain element if the width is less then 900px (yes, I do know how to use CSS Media Queries to adapt pages style to various display widths and use em units and percentages and min-width and max-width in my CSS to get a proper flexible layout or how to check the user agent, it was just a special case).

So I decided to get the current computed width via jQuery:

  1. $(window).width(); // returns width of browser viewport
  2. $(document).width(); // returns width of HTML document

Read the rest of this entry »

Creating a Business Logo

Posted: October 24th, 2012 | Author: | Filed under: Creative Process | Tags: , , , | No Comments »

Even if your business is not a cutting edge tech start up, the overall identity should be unified, clean and impressive. Your logo is a visual representation of everything your company stands for, it establishes a brand identity.

To create a high quality logo a designer gathers the information about client’s business (what they do, who their target audience is, what their aims are and how they want to be presented). A well-done logo should express customers and generate a warm feeling for the company, it ties all business’s aesthetics together.

New Zealand classified company logo ideaLong story short, let me use an example from my sweet web designer’s life.

I created a logo for a classifieds company in New Zealand named Adboard. I am to provide a concept, web design (including user interface design) and a logo.

Develop a concept
A design concept is the idea behind a design. Such developing is absolutely an individual process – there are a lot of ways to generate an idea and represent it.
Read the rest of this entry »

Speech Bubbles powered by CSS

Posted: July 11th, 2012 | Author: | Filed under: Tips and Tricks | Tags: , , , , , | No Comments »

(*and a little bit of jQuery – just to show more content or hide it)

Speech bubbles are a popular effect and you can create a stunning style using it for testimonials or comments.

speech bubble image

For one of my project I apply CSS powered solution with hide/ show jQuery effects. It helps me to save space (while showing the beginning of my text only) and at the same moment open the whole block if it needs. Long story short, here the source for my example:
Read the rest of this entry »

How to Use Multiple Fonts powered by Cufón on the Same Page

Posted: May 12th, 2012 | Author: | Filed under: Tips and Tricks | Tags: , , | No Comments »

When I need to use any custom font at my design, my usual choice is Cufon javascript library. Once I was trying to implement 2 different cufon fonts on the same page. The solution is pretty easy, but you should know where to look for ))

  1. <script type="text/javascript">
  2.         $(document).ready(function () {      
  3.         Cufon.replace('.apercu_bold', { fontFamily: 'Apercu' });
  4.         Cufon.replace('.apercu_reg', { fontFamily: 'Apercu Light' });  
  5.         });  
  6. </script>

How do I know that my fontFamily are ‘Apercu’ and ‘Apercu Light’? I’ve generated 2 files for my fonts (apercu_700.font.js and apercu_light_300.font.js). Cufon is getting the registration information with the curve data for each font. So if you view the source, you find how your custom fonts are named – line 29 for me, Cufon.registerFont({“w”:213,”face”:{“font-family”:”Apercu”,…}});

Looking for a Freelance UX & UI designer for your project? I’m ready to jump onboard!

Let's discuss your project now