When the player interacts with the item frame (using the right mouse button by default), the item frame will be invisible.
1.18.2 Support.
Allow players to make a invisible item frame visible by pressing shift+right click.