Depending on the type of animals, the Museum of Rural Life in East Kilbride has a working farm attached to it where you can visit. You can get up close to cows, pigs, sheep etc. They're fairly placid too as they're so used to seeing people so they don't mind you petting them.