If you truly have zero experience, there is no way I can explain how to do a project like this. It is a project of few parts, but it is really quite involved. So, in lieu of a kind of tutorial or just a straight recipe, I packaged up the project for you which you can download here:
https://fcpxtemplates.com/downloads/
You can use it to study when you get some familiarity with the Motion UI and some basics with working with objects and layers and such. There are tons of free online tutorials that can get you up to speed rather quickly. You actually have my permission to do anything you like with this (if you decide to enhance it, change it, or even publish it as your own... literally, anything!)
The template I put together (Bar Expeller - after the youtube title you used) uses an OSC (on-screen control), behaviors (Link and Sequence Text), an Image Mask, nested groups to handle a collection of objects (Text and Rectangle shapes), Markers, keyframed animation, and published parameters for use in Final Cut Pro. (I tried to label most things to make them easier to follow).
The published parameters are:
Build In and Build Out. [When resizing a Title in FCPX, time is generally "stretched" accordingly. If you want to maintain the original timing used for the animations, These parameters need to be on. If you would like to scale the animations along with the title length, turn them off.]
OSC Position is the X-Y location referenced to center screen. The ranges will look a little weird. If you dial down the disclosure triangle, you will see a different set of values. Both X and Y have the range of 0 to 1.0 (this makes these control work with *any* aspect project you are working in: 0 is always the left or bottom edge and 1 is the right or top edge). X, on the top line looks different and reflects the aspect with respect to Y (0.888889 times the height is one half the width - specifically: 1080 times 0.88889 = 960 and times 2 is 1920 — not that it makes much of a difference, it's just the explanation.)
BG Width allows you adjust the text background rectangle element. You can use it with Text X Offset to resize your title.
Changing the Background Height is not an included feature with this particular template.
BG Color can be any color you like. The BG Opacity is included so you can make it a solid if you like.
The Accent Gradient allows you to change to coloring of the accent bar.
Text Y offset allows you to adjust the vertical placement of the text if you decide to change the font, its size or other features.
Hope this helps and inspires you to dive into Motion!