Context. The blazar 3C 454.3 is one of the most active sources from the radio to the γ-ray frequencies observed in the past few years. Aims. We present multiwavelength observations of this source from April 2008 to March 2010. The radio to optical data are mostly from the GASP-WEBT, UV and X-ray data from Swift, and γ-ray data from the AGILE and Fermi satellites. The aim is to understand the connection among emissions at different frequencies and to derive information on the emitting jet. Methods. Light curves in 18 bands were carefully assembled to study flux variability correlations. We improved the calibration of optical-UV data from the UVOT and OM instruments and estimated the Lyα flux to disentangle the contributions from different components in this spectral region. Results. The observations reveal prominent variability above 8 GHz. In the optical-UV band, the variability amplitude decreases with increasing frequency due to a steadier radiation from both a broad line region and an accretion disc. The optical flux reaches nearly the same levels in the 2008-2009 and 2009-2010 observing seasons; the mm one shows similar behaviour, whereas the γ and X-ray flux levels rise in the second period. Two prominent γ-ray flares in mid 2008 and late 2009 show a double-peaked structure, with a variable γ/optical flux ratio. The X-ray flux variations seem to follow the γ-ray and optical ones by about 0.5 and 1 d, respectively. Conclusions. We interpret the multifrequency behaviour in terms of an inhomogeneous curved jet, where synchrotron radiation of increasing wavelength is produced in progressively outer and wider jet regions, which can change their orientation in time. In particular, we assume that the long-term variability is due to this geometrical effect. By combining the optical and mm light curves to fit the γ and X-ray ones, we find that the γ (X-ray) emission may be explained by inverse-Comptonisation of synchrotron optical (IR) photons by their parent relativistic electrons (SSC process). A slight, variable misalignment between the synchrotron and Comptonisation zones would explain the increased γ and X-ray flux levels in 2009-2010, as well as the change in the γ/optical flux ratio during the outbursts peaks. The time delays of the X-ray flux changes after the γ, and optical ones are consistent with the proposed scenario.