Recreating Apple's security/privacy padlock animation on the logo through just code

So I was redesigning a startup's website with better UI and animations to show my skills and then to pitch for an internship opportunity using that as proof of work. Now they have this section on security/privacy where I thought it would be cool to make an Apple privacy-type padlock animation with their logo. So my question is, can be done using CSS or any framework with just code and not animation software?(EDIT: I will be using an image of the logo and code the handle of the lock, as otherwise it would be too difficult)
Screenshot_731.png
Screenshot_732.png
Screenshot_733.png
Screenshot_734.png
Was this page helpful?