Long-term optical variability properties of blazars in the SDSS Stripe 82