You can do it by train.
Trains stop in Matulji (close to Opatija, I think taxi is the best option to Opatija). Alternatively, you can go to Rijeka and then take a local bus to Opatija.
For train timetables and prices check Slovenian Railways website:
Be the first to rate this answer!