Publisher Trinity Mirror has bought web design and development consultancy Rippleffect, in a deal worth up to £5.8m.