Crawling Under Animation

Hello! I was wondering how to have some sort of animation to crawl under something, like a log upon interaction by pressing a key in game. Similar to ghost of Tsushima, except before you crawl under it changes from first person into third. If anyone can help me I would be so grateful! I am very new to all of this