A project to transform Littlehampton's public spaces has been successful in getting a £2.45 million grant.