To pass vs. to passing

Are the two following sentences correct, wrong, or one of them is:

Would you mind to pass me the salt, please?
Would you mind to passing me the salt, please?

I think both are wrong. In my opinion, the second sentence is close, like:

Would you mind passing me the salt, please?

Please explain this trivial yet confusing rule. Thanks…

Hi,

There are some verbs followed by infinitives or gerunds as : like to do/like doing. Some verbs are followed by infinitive only as: object/want/expect and so on. Other verbs can only be followed by the gerund as: stop/enjoy/admit and so on. Mind is one of those verbs followed by the gerund only and is used mainly in negatives and questions as in:
Do you mind helping me with this? I don’t mind explaining that again.

A