Placed in: Home arrow Useful arrow Reviews arrow Your two cents - CSS3 animation and Lazy loading

Cialis Online

Your two cents - CSS3 animation and Lazy loading

Normally, I would ask questions/opinions from people through Twitter. But sometimes, you really need more space for the question/opinion than 140 characters. That's why I wanted to try a new concept on Marcofolio, called Your two cents. I'll lay down two statements (one cent each), and you're free to share your opinion with the world. Of course, I'll share my opinion too.

Keep in mind these are just opinions from me (and hopefully others in the comments) and not facts. If this concept gets loads of response, I'll continue thinking about other statements.

Your two cents

Here are the two statements on which I'm very curious about what you think about them:

“Animation properties, as added in CSS3, don't belong there.”

Webkit based browsers (Safari and Chrome) support CSS animation (transition and animation). It allows the designer to animate an element across a given timespan.

“Lazyloading images should be implemented on every website.”

Lazy loading delays loading of images in (long) web pages. Images outside of viewport (visible part of web page) wont be loaded before user scrolls to them.

So, what do you think about these two statements? Join the discussion!

My two cents

Animation properties, as added in CSS3, don't belong there.

I have to agree, using the transition CSS property, you can create pretty neat things. But, just like some others, I don't think it should be a CSS standard.

Let's break it down into the two pieces: transition and animation. Simply they mean the following: CSS Transitions are easy to use, while CSS Animations are made for programmers.

Behaviour

There always was a nice split between four different things:

  • Database for Content
  • HTML for Describing and Displaying content
  • CSS for Design
  • JavaScript for Functionality and Behavior

I personally think the CSS animation properties are behavioral things - it tells an element what to do, not how it should look like. Currently, animations are the domain of JavaScript and I think it should stay there.

Complexity

Check out the following CSS animation examples in order to make a transition and an animation.

 
selector {
   transition-property: margin-left, border-color, width, height;
   transition-duration: 0.5s;
   transition-timing-function: ease-out;
}

As you can see, the transition property selects which CSS properties should animate, how long it would take and which function to use. As you can imagine, this kind of CSS can make your code pretty complex. You'll need to think in your design stage on what will happen when an animation starts (which you can't stop BTW). And a timer element (duration) in CSS?

If you think the transition could be complex, check out the animation example:

 
selector:hover {
  animation: 'wobble' 2s;
}
@keyframes 'wobble' {
  0 {
    margin-left: 0;
  }
  40% {
    margin-left: 15px;
  }
  60% {
    margin-left: 75px;
  }
  100% {
      margin-left: 100px;
   }
}

This looks more like JavaScript than CSS to me. As you can see, you declare some sort of function call ('wobble') within your CSS. Although I like the idea of variables within CSS, but function... Not really.


"Lazyloading" images should be implemented on every website.

At first, lazyloading looks great: it only gets the image from the server at the time the user actually needs it. This will probably save your server loads of bandwidth, especially when you have long pages with loads of images (which not all people will view).

But only after seeing blogs like Francesco Mugnai and PSDTUTS+ having implemented the feature, it really started to annoy me a little bit.

Bad user experience

The solution could be very good for your server, but you'll remove some of the user experience. I normally would load a page (on a different tab), wait until it's fully (mostly) loaded and than start scrolling to view if I see something interesting. With the lazy image loading, I need to stop scrolling every time an image will appear. This makes multi-tasking pretty hard.

Another downside is, when using this technique, when you don't set the width and height properties of your image. When you scroll down really fast (for example, when you directly go to the comments section), the page would start loading all the images. Once you get to the comments section, it jumps down since another image has been loaded. This process will repeat itself until all images are loaded, which can be pretty frustrating and time-consuming.

What are your two cents? Tell us what you think!


Tags:  two cents opinion comments css3 transition lazyloading

Interested in this topic? You might enjoy another article I've written called

Did you like this article? Subscribe to my feed or email to keep updated on new articles.

Spread the word and submit to:
Digg!Reddit!Del.icio.us!Facebook!StumbleUpon!
Comments
Add NewSearchRSS
Angie Bowen   2009-12-02 02:25:55
Gravatar image I don't know enough about the animation property to comment but I will say that I hate lazyloading. Like you, I like to do other things while I'm waiting on a page to load. With lazyloading it takes twice as long to look through most pages, especially inspiration posts. So I'm really hoping it doesn't catch on.
Gaya   2009-12-02 09:45:31
Gravatar image I strongly believe animations do not belong in the CSS! I'd fight this because I am really really sure it will never work in multiple browsers, at least not as we expect.
I mean: markup is already done badly, what to expect from CSS animations? On top of that: CSS is for markup, not animation.

I also hate lazy loading, basically there are almost only benefits for the hosting guy. The thing I hate about lazy loading is that if it is a tutorial with a lot of images, I have to wait every time I scroll a bit (which I hate!)
Janko   2009-12-02 10:28:14
Gravatar image I agree with you on both statements and wouldn't have anything to add. Lazy loading is often annoying only.
Umut Muhaddisoglu   2009-12-02 12:06:23
Gravatar image Lazy loading is only useful when there are lots of images and their sizes are small (maybe smaller than 10kb). This way the website loads fast and images appear almost before they are in the viewpoint while scrolling as they load fast enough. All other cases look like a pain.

I don't have a solid thought on CSS animations and they are mostly superficial as I don't know the theory behind adding animations to CSS3. When thinking traditionally, from what we used, animations have no place in CSS. On the other hand, CSS3/HTML 5 is bringing too many new features. And, today, we sometimes need to use JavaScript for styling (for animations, etc.). Everything is so mixed into each other. This part of me says, why not :).
Martin   2009-12-02 15:09:09
Gravatar image I believe a better application of lazy-loading is when the developer differentiates between primary and secondary content. For example, making the secondary sidebar goodies wait until the main column has fully loaded, before it is loaded via AJAX. Of course there are some pitfalls there - anything navigational has got to load immediately, and not all of your users will define primary/secondary the same way as you. Sometimes the motivation for visiting a page is simply to find a link which may be the most insignificant content on the site.

But I think many sites could shave 20% off their initial loading time by designating some of their non-essential content and images to be fetched by a secondary AJAX request. In particular advertising. Nobody clicks on an advert within the first 5 seconds of loading a page, so why not delay their entrance a little?

I have only seen one or two sites doing true lazy-loading, but I do think it has a place in the future of the web.
Alex Flueras - New Media Designer   2009-12-02 17:25:25
Gravatar image I am using LazyLoad on one of my portfolio sites and I am pleased with the results. The page has large images and it would take too long to wait for it to load. I think this is a convenient solution for one page portfolios if you are interested enough to scroll through it. You can see it here: http://www.studioweber.com
John Campbell - I agree   2009-12-02 20:47:02
Gravatar image I came here specifically to see what you had to say about LazyLoading. I am glad that I am not alone. I agree with you on both accounts.

I do wonder if there is a better alternative to LazyLoading though. Something that might actually improve the user experience.
Robin - Agree / disagree.   2009-12-03 00:42:46
Gravatar image I both agree and disagree. In that order. On the main statements, not your opinions ;-)

CSS is a styling language so it's not appropiate to put some markup / effects in there. The only effects that belong in CSS I can think of are drop shadow's and text rotating stuff (not in an animation, just for some preset angle).

The lazyloading can be really annoying so this shoudn't be implemented in all sites. It's just like AJAX technology: don't overkill and put it in every project. Just use the technology where it belongs.

I personally hate the "lazy loading" of the thumbnails in Finder on my Mac. I have a 2,4 Core 2 Duo processor and 4GB of memory and still Finder won't load all the thumbnails at once, only the ones in my viewport at that moment.
Marco - Thanks!   2009-12-03 10:44:53
Gravatar image Wow - thanks everyone for taking the time to come up with those great opinions! It's pretty interesting to see what others are thinking about certain statements.

@John
Preloading improves the UX (it's the opposite of Lazy Loading), but it might be a waste of bandwith (since images are loaded from other pages that might not be viewed by the user).

@Robin
Ah yeah - the Mac does the same, totally forgot that! You're absolutely right that it's annoying too - especially when looking in an icon folder with 1000+ icons. I want to view them really fast, but that is pretty impossible with lazy loading.

We'll see where the future us brings!
Josh   2009-12-04 04:37:37
Gravatar image I actually disagree with you on the CSS animation properties. At first I had the same opinion as you, but I think this is just the natural evolution of things on the web. As the internet becomes more advanced the languages need to become more advanced too. This is like HTML5's canvas or video support.
Molly   2009-12-12 05:01:15
Gravatar image Usually I'll print out tutorials on websites, using lazy loading on web pages costs me a lot of time to scroll down every page I'm about to print!
Anonymous   2009-12-28 10:13:10
Gravatar image UGG Bailey Button Winter Boots
Bailey Button Fancy Logo uggs
UGG Chestnut Fancy Logo Bailey Button
key - Tell You How to Know The UGG boot is for Real or F   2010-12-03 22:58:02
Gravatar image hello my dear friend.i am a professional seller of UGG boots in china.today i am going to teach you a easy way to figure out Which UGG boot is for real sheepskin and for fake leather

in china have a lot of difference quality and price in UGG.but a lot of customer only like the cheap price then buy it, they don't know if it is good quality or poor quality. only care about the price,i can tell you the truth, the real thing and original thing always is Expensive. but our UGG boots is real but with acceptable price!

ok, let's go to the point. how to know it is real sheepskin or fake? i told you a easy way to know it.

First:just take some wool and then burn it,just smell it if it is like the animal wool or it is for fibre material. then see what is left about the wool was burn it.(if it is for real sheep wool. it same smell when we burn our hair).

Second: when you wear it,it is comfortable and soft with warm,breathe freely,absorbent.etc(bad quality is opposite)

so if you want to know more detail and the way, plz visit about website: www.myuggshopping.com . we can sure it is 100% real sheepskin with Excellent good quality and acceptable price! or if you have any doubt. you can contact with my MSN: keykellykey@hotmail.com . i will tell you more way to know what is real and fake!

so my dear friend. don't waste money on the poor and fake thing. welcome to contact with me.thanks.
best regard
key
Christian Louboutin Mary Janes - http://www.christianlouboutinred.org   2011-03-05 03:46:29
Gravatar image My eyes immediately darted straight to her Christian Louboutin Slingbacks that completely transformed her black-and-white outfit.LOS ANGELES
belstaff gong - Belstaff UK Outlet Store, Jackets, Shoes, Boots, C   2011-04-21 02:34:29
Gravatar image In order to meet all demands, producing belstaff jackets never reduce. So many brands in the world conluding North Face jackets, Mens Belstaff Jackets , columbia jackets and also spyder belstaff jacket, each of them is high quality, workmanship, stylish and comfortable, add waterproof and durable freature, they also support for extreme sports.
belstaff gong - Belstaff UK Outlet Store, Jackets, Shoes, Boots, C   2011-04-22 02:54:09
Gravatar image belstaff
belstaff jackets
belstaff jacket
jacket belstaff
belstaff sales
belstaff sale
belstaff on sale
belstaff for sale
Belstaff UK
belstaff london
belstaff uk store
Belstaff UK Outlet
cheap rosetta stone sale - cheap rosetta stone sale   2011-05-30 02:39:11
Gravatar image stylish and comfortable, add waterproof and durable freature, they also support for extreme sports.
first drug store guide - first drug store guide   2011-06-09 08:56:50
Gravatar image I really want to thank yahoo search engine who have sent me to this wonderful site. The articles posted on this site are great and amazing. I am glad that I have found this amazing site.
online pharmacy listing clinic - online pharmacy listing clinic   2011-06-09 08:57:48
Gravatar image I found this site extremely useful and informative. It is full of all useful stuff and I am glad that I have come across this site. I have made by job much easier, thanks for sharing with us.
retail pharmacy hub - retail pharmacy hub   2011-06-09 08:59:23
Gravatar image Wonderful post. I like the way it is written and presented. I have book marked the site for my future reference.
discount online store pharmacy - discount online store pharmacy   2011-06-09 09:01:24
Gravatar image I had logged onto this site very recently and found it to be very useful and informative. Each and every concept was well presented. Thanks a lot for the information.
online anti smoking pills club - online anti smoking pills club   2011-06-09 09:02:06
Gravatar image I had found lots of information from this site. Thanks a lot for the information and I had liked it very much. It is very helpful for me. Thanks a lot and hope to see more stuff.
secure fat the drop - secure fat the drop   2011-06-09 09:03:41
Gravatar image This was really a great site which I had found it to be very cordial and I really liked it very much. Thanks a lot.
birth control pills journal - birth control pills journal   2011-06-09 09:04:44
Gravatar image The information which I had found in this blog was really very cordial and I had liked it very much. Thanks a lot for the information.
legal online pharmacy store - legal online pharmacy store   2011-06-09 09:05:53
Gravatar image This site was really very interesting and I had got impressed with this stuff. Thanks a lot for the lovely information which was given in this blog.
online stores pharmacy usa - online stores pharmacy usa   2011-06-09 09:06:56
Gravatar image I had really enjoyed viewing this blog. The information was really very cordial and it was very helpful for me. Thanks a lot for the stuff.
anti smoking pills bar - anti smoking pills bar   2011-06-09 09:07:54
Gravatar image I am very glad to post a comment on your blog as I really enjoyed reading your posts.
weight loss side effects journ - weight loss side effects journal   2011-06-09 09:08:47
Gravatar image The information provided was extremely useful and informative. Thanks a lot for useful stuff.
pharmacy online store - pharmacy online store   2011-06-09 09:09:22
Gravatar image This article is so interesting I am completely engrossed. Really I appreciate the efforts you take for making these posts. Thanks for sharing with us such useful information.
cheap pharmacy stores spot - cheap pharmacy stores spot   2011-06-09 09:09:59
Gravatar image I really enjoy reading your well written articles. I think you spend numerous effort and time in posting the blog. I have bookmarked it and I am looking ahead to reading new articles. Keep up the good articles!
best specialty pharmacy spot - best specialty pharmacy spot   2011-06-09 09:10:36
Gravatar image You are awesome people and bring great info; I definitely look forward for your work as I am a regular visitor of your site. Thanks a lot, superb work!!!!!
Anonymous   2011-07-26 01:41:46
Gravatar image Thank you for your share. Look for good articles.
rajendra - We Hosting PadReviews   2011-08-02 10:00:57
Gravatar image Nice posts are visible in this blog and the nice technology is visible in this blog and useful info in this blog. I had really like it very much for using the great info in this blog. I am really very happy for visiting the nice info in this blog that to I am searching for something info in this website and it had providing unique info in this website. Thanks a lot for sharing the nice info in this blog.
Rosetta Stone Outlet - Rosetta Stone Sale   2011-09-07 08:48:27
Gravatar image Hello, I like you page. I
belstaff - belstaff   2011-09-11 02:38:40
Gravatar image An attorney passed on and found himself in heaven, but not at all happy with his accommodations.aster[/url] He complained to St. Peter, who told him that his only belstaff recourse was to appeal his assignment. The attorney immediately advised that he intended to appeal, but was then told that he would be waiting at least three years before his appeal could be heard. The attorney protested that a three year wait was unconscionable, but his words fell on deaf ears. The lawyer was then approached by the devil, who told him that he would be able to arrange an appeal to be heard in a few days, if the attorney was willing to change venue to Hell. When the attorney asked why [url=http://www.belstaffoutletjacket.com]
belstaff trialmaster[/url] appeals could be heard so much sooner in Hell, he was told, "We have all of the judges."
belstaff - belstaff jackets sale : www.belstaff-jacket-sale.c   2011-09-14 14:33:46
Gravatar image The belstaff jackets is so famous around the world,you can buy one for your family this winter.Belstaff online store, belstaff jackets,belstaff motorcycle leather clothes.
NFL jerseys Outlet - GHD Hair Straighteners   2011-09-23 13:35:57
Gravatar image I have been surfing on-line NFL jerseys OutletMLB jerseys Outletmore than three hours as NFL jerseys OutletNBA jerseys Outletof late, yet I never found any fascinating article like yours
I
NFL jerseys Outlet - GHD Hair Straighteners   2011-09-23 13:36:39
Gravatar image I have been surfing on-line NFL jerseys OutletMLB jerseys Outletmore than three hours as NFL jerseys OutletNBA jerseys Outletof late, yet I never found any fascinating article like yours
I
otzg   2011-10-14 01:38:30
Gravatar image [url=http://www.hx31.com]
gearbox - gearbox   2011-10-24 16:33:58
Gravatar image These instructions will assist you in assembling the hydraulic winch components. The winch package contains the following
items that need to be assembledhydraulic winch on to the winch:
Hydraulic motor with Sleeve
Fairlead
Winch Control Bar (this item may be packaged separately)
The tools required (included with winch) are:
3/8 inch Allen wrench
(2) 11/16 x ¾ inch open end wrenches
Hydraulic Motor Assembly
Step 1: Slide the sleeve into planetary gearbox the coupling housing being careful to line up the key with the keyway.
Connecting the Hydraulic Power Unit (HPU) to the Hydraulic Winch
Both the HPU and the winch come with pre-assembled quick disconnect fittings. The final drivemale and female fittings on both the
HPU and the winch insure that the two units cannot be connected incorrectly. Attach each fitting to its corresponding fitting
on the winch.
north face jackets for women - north face jackets for women   2011-10-30 12:23:15
Gravatar image
north face jackets for women - north face jackets for women   2011-10-30 12:24:37
Gravatar image
Andy - awesome   2011-11-23 18:01:43
Gravatar image wow those two cents look very real, I would love to learn to use one of those, I'm new on 3D animation, I'm working on the logo of Indian Pharmacy do you have some tips or advice for me?
abercrombie and fitch - abercrombie and fitch   2011-11-24 07:56:44
Gravatar image Apparels are very key aspects representing people and how they are perceived by others in today
north face denali jacket clear - north face denali jacket clearance   2012-01-05 03:19:00
Gravatar image The marginally a lot less popular route and by far 1 of the most exciting and lovely routes onto the mountain commences at a tiny car park at Minffordd. The automobile park is just off the junction of the A487 and the B4405 at the Eastern stop of Tal-y-llyn lake, or to use its Welsh name Llyn Mwyngil.
Read more...
Name:
Email:
  Gravatar enabled.
Website:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
 
:angry::0:confused::cheer:B):evil::silly::dry::lol::kiss::D:pinch:
:(:shock::X:side::):P:unsure::woohoo::huh::whistle:;):s
:!::?::idea::arrow:
 
Security Image
Please input the anti-spam code that you can read in the image.
Unsubscribe from e-mail notifications.
 
< Prev   Next >
Subscribe

Marcofolio.net has 7374 addicts. Join them!